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

Side by Side Diff: trunk/src/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h

Issue 21372006: Revert 212329 "Reland "Close web contents modal dialogs on conte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
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 CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 23 matching lines...) Expand all
34 id<ConstrainedWindowSheet> sheet); 34 id<ConstrainedWindowSheet> sheet);
35 virtual ~ConstrainedWindowMac(); 35 virtual ~ConstrainedWindowMac();
36 36
37 void ShowWebContentsModalDialog(); 37 void ShowWebContentsModalDialog();
38 // Closes the constrained window and deletes this instance. 38 // Closes the constrained window and deletes this instance.
39 void CloseWebContentsModalDialog(); 39 void CloseWebContentsModalDialog();
40 void FocusWebContentsModalDialog(); 40 void FocusWebContentsModalDialog();
41 void PulseWebContentsModalDialog(); 41 void PulseWebContentsModalDialog();
42 web_modal::NativeWebContentsModalDialog GetNativeDialog(); 42 web_modal::NativeWebContentsModalDialog GetNativeDialog();
43 43
44 void SetPreventCloseOnLoadStart(bool prevent);
45
46 private: 44 private:
47 // Gets the parent window of the dialog. 45 // Gets the parent window of the dialog.
48 NSWindow* GetParentWindow() const; 46 NSWindow* GetParentWindow() const;
49 47
50 ConstrainedWindowMacDelegate* delegate_; // weak, owns us. 48 ConstrainedWindowMacDelegate* delegate_; // weak, owns us.
51 49
52 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak. 50 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak.
53 content::WebContents* web_contents_; 51 content::WebContents* web_contents_;
54 52
55 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; 53 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_;
56 54
57 // This is true if the constrained window has been shown. 55 // This is true if the constrained window has been shown.
58 bool shown_; 56 bool shown_;
59 }; 57 };
60 58
61 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ 59 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698