blob: 57995ee21a063d55c835efb01e912ac6cd245b66 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
#define UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_
namespace content {
class RenderViewHost;
class WebUI;
}
namespace ui {
// Implement this class to receive notifications.
class WebDialogObserver {
public:
// Invoked when a web dialog has been shown.
// |webui| is the WebUI with which the dialog is associated.
// |render_view_host| is the RenderViewHost for the shown dialog.
virtual void OnDialogShown(content::WebUI* webui,
content::RenderViewHost* render_view_host) = 0;
protected:
virtual ~WebDialogObserver() {}
};
} // namespace ui
#endif // UI_WEB_DIALOGS_WEB_DIALOG_OBSERVER_H_