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 UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_ 7 8 namespace content { 9 class RenderViewHost; 10 class WebUI; 11 } 12 13 namespace ui { 14 15 // Implement this class to receive notifications. 16 class WebDialogObserver { 17 public: 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; 23 24 protected: 25 virtual ~WebDialogObserver() {} 26 }; 27 28 } // namespace ui 29 30 #endif // UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_ 31