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

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

Issue 11633052: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gtk_widget_get_toplevel for GetNativeWindow Created 7 years, 11 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_ALERT_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ALERT_H_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ALERT_H_ 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ALERT_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
11 11
12 // This class implements an alert that has a constrained window look and feel 12 // This class implements an alert that has a constrained window look and feel
13 // (close button on top right, WebUI style buttons, etc...). To use this class 13 // (close button on top right, WebUI style buttons, etc...). To use this class
14 // subclass ConstrainedWindow and create an instance of this class. 14 // subclass WebContentsModalDialog and create an instance of this class.
15 // The alert can be shown by using the window accessor and calling 15 // The alert can be shown by using the window accessor and calling
16 // -[window orderFont:]. Normally this would be done by 16 // -[window orderFont:]. Normally this would be done by
17 // ConstrainedWindowSheetController. 17 // ConstrainedWindowSheetController.
18 @interface ConstrainedWindowAlert : NSObject { 18 @interface ConstrainedWindowAlert : NSObject {
19 @private 19 @private
20 scoped_nsobject<NSTextField> informativeTextField_; 20 scoped_nsobject<NSTextField> informativeTextField_;
21 scoped_nsobject<NSTextField> messageTextField_; 21 scoped_nsobject<NSTextField> messageTextField_;
22 scoped_nsobject<NSView> accessoryView_; 22 scoped_nsobject<NSView> accessoryView_;
23 scoped_nsobject<NSMutableArray> buttons_; 23 scoped_nsobject<NSMutableArray> buttons_;
24 scoped_nsobject<NSButton> closeButton_; 24 scoped_nsobject<NSButton> closeButton_;
(...skipping 17 matching lines...) Expand all
42 target:(id)target 42 target:(id)target
43 action:(SEL)action; 43 action:(SEL)action;
44 44
45 // Lays out the controls in the alert. This should be called before the window 45 // Lays out the controls in the alert. This should be called before the window
46 // is displayed. 46 // is displayed.
47 - (void)layout; 47 - (void)layout;
48 48
49 @end 49 @end
50 50
51 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ALERT_H _ 51 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ALERT_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698