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.
5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
6 #define UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
15 // Implement this class to receive notifications.
16 class WebDialogObserver
{
18 // Invoked when a web dialog has been shown.
19 // |webui| is the WebUI with which the dialog is associated.
20 // |render_view_host| is the RenderViewHost for the shown dialog.
21 virtual void OnDialogShown(content::WebUI
* webui
,
22 content::RenderViewHost
* render_view_host
) = 0;
25 virtual ~WebDialogObserver() {}
30 #endif // UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_