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 |