Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698