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

Side by Side Diff: ui/web_dialogs/web_dialog_observer.h

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/web_dialogs/web_dialog_delegate.cc ('k') | ui/web_dialogs/web_dialog_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_ 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
6 #define CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/web_dialogs/web_dialogs_export.h"
10
9 namespace content { 11 namespace content {
10 class RenderViewHost; 12 class RenderViewHost;
11 class WebUI; 13 class WebUI;
12 } 14 }
13 15
16 namespace ui {
17
14 // Implement this class to receive notifications. 18 // Implement this class to receive notifications.
15 class WebDialogObserver { 19 class WEB_DIALOGS_EXPORT WebDialogObserver {
16 public: 20 public:
17 // Invoked when a web dialog has been shown. 21 // Invoked when a web dialog has been shown.
18 // |webui| is the WebUI with which the dialog is associated. 22 // |webui| is the WebUI with which the dialog is associated.
19 // |render_view_host| is the RenderViewHost for the shown dialog. 23 // |render_view_host| is the RenderViewHost for the shown dialog.
20 virtual void OnDialogShown(content::WebUI* webui, 24 virtual void OnDialogShown(content::WebUI* webui,
21 content::RenderViewHost* render_view_host) = 0; 25 content::RenderViewHost* render_view_host) = 0;
22 26
23 protected: 27 protected:
24 virtual ~WebDialogObserver() {} 28 virtual ~WebDialogObserver() {}
25 }; 29 };
26 30
27 #endif // CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_ 31 } // namespace ui
32
33 #endif // UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/web_dialogs/web_dialog_delegate.cc ('k') | ui/web_dialogs/web_dialog_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698