| OLD | NEW |
| 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_ |
| OLD | NEW |