Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / web_modal / web_contents_modal_dialog_manager_delegate.h
blob76f74354de598291f4f8315e3d0c5d64cfbc83de
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 COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
8 namespace content {
9 class WebContents;
12 namespace gfx {
13 class Point;
16 namespace web_modal {
18 class WebContentsModalDialogHost;
20 class WebContentsModalDialogManagerDelegate {
21 public:
22 // Changes the blocked state of |web_contents|. WebContentses are considered
23 // blocked while displaying a web contents modal dialog. During that time
24 // renderer host will ignore any UI interaction within WebContents outside of
25 // the currently displaying dialog.
26 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
27 bool blocked);
29 // Returns the WebContentsModalDialogHost for use in positioning web contents
30 // modal dialogs within the browser window.
31 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost();
33 // Returns whether the WebContents is currently visible or not.
34 virtual bool IsWebContentsVisible(content::WebContents* web_contents);
36 protected:
37 virtual ~WebContentsModalDialogManagerDelegate();
40 } // namespace web_modal
42 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_