Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3942)

Unified Diff: chrome/browser/ui/webui/web_dialog_delegate.h

Issue 10332231: Remove chrome::NOTIFICATION_WEB_DIALOG_SHOWN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add web_dialog_observer.h to chrome_browser.gypi Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/constrained_web_dialog_ui.cc ('k') | chrome/browser/ui/webui/web_dialog_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/web_dialog_delegate.h
diff --git a/chrome/browser/ui/webui/web_dialog_delegate.h b/chrome/browser/ui/webui/web_dialog_delegate.h
index b72e607b25704a357a0f8bc3c763fd6786ab0578..12ebadaca160c5c73ce3e1e084e4872afa13a181 100644
--- a/chrome/browser/ui/webui/web_dialog_delegate.h
+++ b/chrome/browser/ui/webui/web_dialog_delegate.h
@@ -16,8 +16,10 @@
class GURL;
namespace content {
-class WebUIMessageHandler;
+class RenderViewHost;
class WebContents;
+class WebUI;
+class WebUIMessageHandler;
struct ContextMenuParams;
struct OpenURLParams;
}
@@ -63,6 +65,12 @@ class WebDialogDelegate {
// changed.
virtual void OnLoadingStateChanged(content::WebContents* source) {}
+ // A callback to notify the delegate that a web dialog has been shown.
+ // |webui| is the WebUI with which the dialog is associated.
+ // |render_view_host| is the RenderViewHost for the shown dialog.
+ virtual void OnDialogShown(content::WebUI* webui,
+ content::RenderViewHost* render_view_host) {}
+
// A callback to notify the delegate that the dialog closed.
// IMPORTANT: Implementations should delete |this| here (unless they've
// arranged for the delegate to be deleted in some other way, e.g. by
« no previous file with comments | « chrome/browser/ui/webui/constrained_web_dialog_ui.cc ('k') | chrome/browser/ui/webui/web_dialog_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698