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

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

Issue 866263008: MacViews: Unify web contents modal dialog types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ValidationMessageBubble
Patch Set: Another idea Created 5 years, 10 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 (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 21 matching lines...) Expand all
32 ConstrainedWindowMacDelegate* delegate, 32 ConstrainedWindowMacDelegate* delegate,
33 content::WebContents* web_contents, 33 content::WebContents* web_contents,
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();
43 42
44 private: 43 private:
45 ConstrainedWindowMacDelegate* delegate_; // weak, owns us. 44 ConstrainedWindowMacDelegate* delegate_; // weak, owns us.
46 45
47 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak. 46 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak.
48 content::WebContents* web_contents_; 47 content::WebContents* web_contents_;
49 48
50 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; 49 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_;
51 50
52 // This is true if the constrained window has been shown. 51 // This is true if the constrained window has been shown.
53 bool shown_; 52 bool shown_;
54 }; 53 };
55 54
56 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ 55 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698