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

Unified Diff: chrome/browser/ui/webui/web_dialog_observer.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/web_dialog_delegate.h ('k') | chrome/browser/ui/webui/web_dialog_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/web_dialog_observer.h
diff --git a/chrome/browser/ui/webui/web_dialog_observer.h b/chrome/browser/ui/webui/web_dialog_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..41c2563c6739c18a4f32096a4de35a455d23f410
--- /dev/null
+++ b/chrome/browser/ui/webui/web_dialog_observer.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_
+#define CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_
+#pragma once
+
+namespace content {
+class RenderViewHost;
+class WebUI;
+}
+
+// Implement this class to receive notifications.
+class WebDialogObserver {
+ public:
+ // Invoked when 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) = 0;
+
+ protected:
+ virtual ~WebDialogObserver() {}
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_
« no previous file with comments | « chrome/browser/ui/webui/web_dialog_delegate.h ('k') | chrome/browser/ui/webui/web_dialog_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698