OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 namespace content { |
| 10 class RenderViewHost; |
| 11 class WebUI; |
| 12 } |
| 13 |
| 14 // Implement this class to receive notifications. |
| 15 class WebDialogObserver { |
| 16 public: |
| 17 // Invoked when a web dialog has been shown. |
| 18 // |webui| is the WebUI with which the dialog is associated. |
| 19 // |render_view_host| is the RenderViewHost for the shown dialog. |
| 20 virtual void OnDialogShown(content::WebUI* webui, |
| 21 content::RenderViewHost* render_view_host) = 0; |
| 22 |
| 23 protected: |
| 24 virtual ~WebDialogObserver() {} |
| 25 }; |
| 26 |
| 27 #endif // CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_OBSERVER_H_ |
OLD | NEW |