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

Side by Side Diff: components/web_modal/web_contents_modal_dialog_manager_delegate.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
7 7
8 namespace content { 8 namespace content {
9 class WebContents; 9 class WebContents;
10 } 10 }
11 11
12 namespace gfx {
13 class Point;
14 }
15
16 namespace web_modal { 12 namespace web_modal {
17 13
18 class WebContentsModalDialogHost; 14 class WebContentsModalDialogHost;
19 15
20 class WebContentsModalDialogManagerDelegate { 16 class WebContentsModalDialogManagerDelegate {
21 public: 17 public:
22 // Changes the blocked state of |web_contents|. WebContentses are considered 18 // Changes the blocked state of |web_contents|. WebContentses are considered
23 // blocked while displaying a web contents modal dialog. During that time 19 // blocked while displaying a web contents modal dialog. During that time
24 // renderer host will ignore any UI interaction within WebContents outside of 20 // renderer host will ignore any UI interaction within WebContents outside of
25 // the currently displaying dialog. 21 // the currently displaying dialog.
26 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 22 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
27 bool blocked); 23 bool blocked);
28 24
29 // Returns the WebContentsModalDialogHost for use in positioning web contents 25 // Returns the WebContentsModalDialogHost for use in positioning web contents
30 // modal dialogs within the browser window. 26 // modal dialogs within the browser window.
31 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost(); 27 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost();
32 28
33 // Returns whether the WebContents is currently visible or not. 29 // Returns whether the WebContents is currently visible or not.
34 virtual bool IsWebContentsVisible(content::WebContents* web_contents); 30 virtual bool IsWebContentsVisible(content::WebContents* web_contents);
35 31
36 protected: 32 protected:
37 virtual ~WebContentsModalDialogManagerDelegate(); 33 virtual ~WebContentsModalDialogManagerDelegate();
38 }; 34 };
39 35
40 } // namespace web_modal 36 } // namespace web_modal
41 37
42 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ 38 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698