summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/html_dialog_ui.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 16:53:41 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 16:53:41 +0000
commit038d52e1cd7f5ec3eda5c18b4c4437c372ec9c04 (patch)
treece06e8884aebf474fcb02170d3af0334567fa8f4 /chrome/browser/dom_ui/html_dialog_ui.h
parentd76d4ebac33dd9df8c3aa361b7902e0a934fde4d (diff)
downloadchromium_src-038d52e1cd7f5ec3eda5c18b4c4437c372ec9c04.zip
chromium_src-038d52e1cd7f5ec3eda5c18b4c4437c372ec9c04.tar.gz
chromium_src-038d52e1cd7f5ec3eda5c18b4c4437c372ec9c04.tar.bz2
More style nits.
(Working on cleaning chrome/ so hopefully we can lint it by default.) Review URL: http://codereview.chromium.org/274040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/html_dialog_ui.h')
-rw-r--r--chrome/browser/dom_ui/html_dialog_ui.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/chrome/browser/dom_ui/html_dialog_ui.h b/chrome/browser/dom_ui/html_dialog_ui.h
index fce8f7c..ffc5196 100644
--- a/chrome/browser/dom_ui/html_dialog_ui.h
+++ b/chrome/browser/dom_ui/html_dialog_ui.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_DOM_UI_HTML_DIALOG_UI_H_
#define CHROME_BROWSER_DOM_UI_HTML_DIALOG_UI_H_
+#include <string>
#include <vector>
#include "chrome/browser/dom_ui/dom_ui.h"
@@ -18,33 +19,33 @@ class Size;
// Implement this class to receive notifications.
class HtmlDialogUIDelegate {
public:
- // Returns true if the contents needs to be run in a modal dialog.
- virtual bool IsDialogModal() const = 0;
+ // Returns true if the contents needs to be run in a modal dialog.
+ virtual bool IsDialogModal() const = 0;
- // Returns the title of the dialog.
- virtual std::wstring GetDialogTitle() const = 0;
+ // Returns the title of the dialog.
+ virtual std::wstring GetDialogTitle() const = 0;
- // Get the HTML file path for the content to load in the dialog.
- virtual GURL GetDialogContentURL() const = 0;
+ // Get the HTML file path for the content to load in the dialog.
+ virtual GURL GetDialogContentURL() const = 0;
- // Get DOMMessageHandler objects to handle messages from the HTML/JS page.
- // The handlers are used to send and receive messages from the page while it
- // is still open. Ownership of each handler is taken over by the DOMUI
- // hosting the page.
- virtual void GetDOMMessageHandlers(
- std::vector<DOMMessageHandler*>* handlers) const = 0;
+ // Get DOMMessageHandler objects to handle messages from the HTML/JS page.
+ // The handlers are used to send and receive messages from the page while it
+ // is still open. Ownership of each handler is taken over by the DOMUI
+ // hosting the page.
+ virtual void GetDOMMessageHandlers(
+ std::vector<DOMMessageHandler*>* handlers) const = 0;
- // Get the size of the dialog.
- virtual void GetDialogSize(gfx::Size* size) const = 0;
+ // Get the size of the dialog.
+ virtual void GetDialogSize(gfx::Size* size) const = 0;
- // Gets the JSON string input to use when showing the dialog.
- virtual std::string GetDialogArgs() const = 0;
+ // Gets the JSON string input to use when showing the dialog.
+ virtual std::string GetDialogArgs() const = 0;
- // A callback to notify the delegate that the dialog closed.
- virtual void OnDialogClosed(const std::string& json_retval) = 0;
+ // A callback to notify the delegate that the dialog closed.
+ virtual void OnDialogClosed(const std::string& json_retval) = 0;
- protected:
- ~HtmlDialogUIDelegate() {}
+ protected:
+ ~HtmlDialogUIDelegate() {}
};
// Displays file URL contents inside a modal HTML dialog.
@@ -71,7 +72,7 @@ class HtmlDialogUI : public DOMUI {
};
// When created, the property should already be set on the TabContents.
- HtmlDialogUI(TabContents* tab_contents);
+ explicit HtmlDialogUI(TabContents* tab_contents);
virtual ~HtmlDialogUI();
// Returns the PropertyBag accessor object used to write the delegate pointer