OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #import <Cocoa/Cocoa.h> | |
6 | |
7 #include "base/memory/scoped_nsobject.h" | |
8 | |
9 @interface CWAlert : NSObject { | |
10 scoped_nsobject<NSTextField> informativeTextField_; | |
11 scoped_nsobject<NSTextField> messageTextField_; | |
12 scoped_nsobject<NSView> accessoryView_; | |
13 scoped_nsobject<NSMutableArray> buttons_; | |
14 scoped_nsobject<NSButton> closeButton_; | |
15 scoped_nsobject<NSWindow> window_; | |
16 } | |
17 | |
18 @property(nonatomic, retain) NSString* informativeText; | |
19 @property(nonatomic, retain) NSString* messageText; | |
20 @property(nonatomic, retain) NSView* accessoryView; | |
21 @property(nonatomic, readonly) NSArray* buttons; | |
22 @property(nonatomic, readonly) NSButton* closeButton; | |
23 @property(nonatomic, readonly) NSWindow* window; | |
24 | |
25 - (id)init; | |
26 | |
27 - (void)addButtonWithTitle:(NSString*)title | |
28 keyEquivalent:(NSString*)keyEquivalent; | |
29 | |
30 - (void)layout; | |
31 | |
32 @end | |
OLD | NEW |