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

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

Issue 11647017: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 namespace content {
9 class WebContents;
10 }
11
12 namespace gfx {
13 class Point;
14 }
15
16 class WebContentsModalDialogManagerDelegate {
17 public:
18 // Returns true if WebContentsModalDialogs should be focused. Default is true.
19 virtual bool ShouldFocusWebContentsModalDialog();
20
21 // Changes the blocked state of |web_contents|. WebContentses are considered
22 // blocked while displaying a web contents modal dialog. During that time
23 // renderer host will ignore any UI interaction within WebContents outside of
24 // the currently displaying dialog.
25 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
26 bool blocked);
27
28 // Fills in |point| with the coordinates for positioning web contents modal
29 // dialogs. The dialog should position itself such that its top center is at
30 // |point|. Return false if the default position should be used.
31 // TODO(wittman): Remove this function once we have migrated positioning
32 // functionality to a ShowDialog function on WebContentsModalDialogManager.
33 virtual bool GetDialogTopCenter(gfx::Point* point);
34
35 protected:
36 virtual ~WebContentsModalDialogManagerDelegate();
37 };
38
39 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698