OLD | NEW |
| (Empty) |
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 CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ | |
7 | |
8 class WebContentsModalDialogHost; | |
9 | |
10 namespace content { | |
11 class WebContents; | |
12 } | |
13 | |
14 namespace gfx { | |
15 class Point; | |
16 } | |
17 | |
18 class WebContentsModalDialogManagerDelegate { | |
19 public: | |
20 // Changes the blocked state of |web_contents|. WebContentses are considered | |
21 // blocked while displaying a web contents modal dialog. During that time | |
22 // renderer host will ignore any UI interaction within WebContents outside of | |
23 // the currently displaying dialog. | |
24 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | |
25 bool blocked); | |
26 | |
27 // Returns the WebContentsModalDialogHost for use in positioning web contents | |
28 // modal dialogs within the browser window. | |
29 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost(); | |
30 | |
31 protected: | |
32 virtual ~WebContentsModalDialogManagerDelegate(); | |
33 }; | |
34 | |
35 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ | |
OLD | NEW |