diff options
Diffstat (limited to 'chrome/browser/dom_ui/html_dialog_ui.h')
-rw-r--r-- | chrome/browser/dom_ui/html_dialog_ui.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/html_dialog_ui.h b/chrome/browser/dom_ui/html_dialog_ui.h index ffc5196..be2df7f 100644 --- a/chrome/browser/dom_ui/html_dialog_ui.h +++ b/chrome/browser/dom_ui/html_dialog_ui.h @@ -44,6 +44,12 @@ class HtmlDialogUIDelegate { // 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 contents have gone + // away. Only relevant if your dialog hosts code that calls + // windows.close() and you've allowed that. If the output parameter + // is set to true, then the dialog is closed. The default is false. + virtual void OnCloseContents(TabContents* source, bool* out_close_dialog) = 0; + protected: ~HtmlDialogUIDelegate() {} }; @@ -89,4 +95,15 @@ class HtmlDialogUI : public DOMUI { DISALLOW_COPY_AND_ASSIGN(HtmlDialogUI); }; +// Displays external URL contents inside a modal HTML dialog. +// +// Intended to be the place to collect the settings and lockdowns +// necessary for running external UI conponents securely (e.g., the +// cloud print dialog). +class ExternalHtmlDialogUI : public HtmlDialogUI { + public: + explicit ExternalHtmlDialogUI(TabContents* tab_contents); + virtual ~ExternalHtmlDialogUI(); +}; + #endif // CHROME_BROWSER_DOM_UI_HTML_DIALOG_UI_H_ |