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

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

Issue 1779383002: MacViews: Remove constrained window dependencies for certificate viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move out ConstrainedWindowSheet to Cocoa-only, other review comments. Created 4 years, 6 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_H_ 5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 19 matching lines...) Expand all
30 void SetDelegate(WebContentsModalDialogManagerDelegate* d); 30 void SetDelegate(WebContentsModalDialogManagerDelegate* d);
31 31
32 static SingleWebContentsDialogManager* CreateNativeWebModalManager( 32 static SingleWebContentsDialogManager* CreateNativeWebModalManager(
33 gfx::NativeWindow dialog, 33 gfx::NativeWindow dialog,
34 SingleWebContentsDialogManagerDelegate* native_delegate); 34 SingleWebContentsDialogManagerDelegate* native_delegate);
35 35
36 // Shows the dialog as a web contents modal dialog. The dialog will notify via 36 // Shows the dialog as a web contents modal dialog. The dialog will notify via
37 // WillClose() when it is being destroyed. 37 // WillClose() when it is being destroyed.
38 void ShowModalDialog(gfx::NativeWindow dialog); 38 void ShowModalDialog(gfx::NativeWindow dialog);
39 39
40 #if defined(OS_MACOSX)
41 // Like CreateNativeWebModalManager, but creates a manager for a single dialog
42 // parented to an invisible overlay window.
43 static SingleWebContentsDialogManager* CreateNativeWebModalOverlayManager(
44 gfx::NativeWindow dialog,
45 SingleWebContentsDialogManagerDelegate* native_delegate);
46
47 // Like ShowModalDialog, but uses the dialog as an invisible overlay window.
48 void ShowModalDialogWithOverlay(gfx::NativeWindow dialog);
49 #endif
50
40 // Allow clients to supply their own native dialog manager. Suitable for 51 // Allow clients to supply their own native dialog manager. Suitable for
41 // bubble clients. 52 // bubble clients.
42 void ShowDialogWithManager( 53 void ShowDialogWithManager(
43 gfx::NativeWindow dialog, 54 gfx::NativeWindow dialog,
44 std::unique_ptr<SingleWebContentsDialogManager> manager); 55 std::unique_ptr<SingleWebContentsDialogManager> manager);
45 56
46 // Returns true if any dialogs are active and not closed. 57 // Returns true if any dialogs are active and not closed.
47 bool IsDialogActive() const; 58 bool IsDialogActive() const;
48 59
49 // Focus the topmost modal dialog. IsDialogActive() must be true when calling 60 // Focus the topmost modal dialog. IsDialogActive() must be true when calling
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 127
117 // True while closing the dialogs on WebContents close. 128 // True while closing the dialogs on WebContents close.
118 bool closing_all_dialogs_; 129 bool closing_all_dialogs_;
119 130
120 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); 131 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager);
121 }; 132 };
122 133
123 } // namespace web_modal 134 } // namespace web_modal
124 135
125 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 136 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698