summaryrefslogtreecommitdiffstats
path: root/ui/web_dialogs/web_dialog_observer.h
blob: 57995ee21a063d55c835efb01e912ac6cd245b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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_