OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_EXTENSION_INSTALL_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ |
6 #define CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ | 6 #define CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 NSWindow* parentWindow_; // weak | 32 NSWindow* parentWindow_; // weak |
33 Profile* profile_; // weak | 33 Profile* profile_; // weak |
34 ExtensionInstallUI::Delegate* delegate_; // weak | 34 ExtensionInstallUI::Delegate* delegate_; // weak |
35 | 35 |
36 scoped_nsobject<NSString> title_; | 36 scoped_nsobject<NSString> title_; |
37 scoped_nsobject<NSString> warnings_; | 37 scoped_nsobject<NSString> warnings_; |
38 SkBitmap icon_; | 38 SkBitmap icon_; |
39 } | 39 } |
40 | 40 |
41 @property (readonly) NSImageView* iconView; | 41 @property (nonatomic, readonly) NSImageView* iconView; |
42 @property (readonly) NSTextField* titleField; | 42 @property (nonatomic, readonly) NSTextField* titleField; |
43 @property (readonly) NSTextField* subtitleField; | 43 @property (nonatomic, readonly) NSTextField* subtitleField; |
44 @property (readonly) NSTextField* warningsField; | 44 @property (nonatomic, readonly) NSTextField* warningsField; |
45 @property (readonly) NSBox* warningsBox; | 45 @property (nonatomic, readonly) NSBox* warningsBox; |
46 @property (readonly) NSButton* cancelButton; | 46 @property (nonatomic, readonly) NSButton* cancelButton; |
47 @property (readonly) NSButton* okButton; | 47 @property (nonatomic, readonly) NSButton* okButton; |
48 | 48 |
49 - (id)initWithParentWindow:(NSWindow*)window | 49 - (id)initWithParentWindow:(NSWindow*)window |
50 profile:(Profile*)profile | 50 profile:(Profile*)profile |
51 extension:(Extension*)extension | 51 extension:(Extension*)extension |
52 delegate:(ExtensionInstallUI::Delegate*)delegate | 52 delegate:(ExtensionInstallUI::Delegate*)delegate |
53 icon:(SkBitmap*)bitmap | 53 icon:(SkBitmap*)bitmap |
54 warnings:(const std::vector<string16>&)warnings; | 54 warnings:(const std::vector<string16>&)warnings; |
55 - (void)runAsModalSheet; | 55 - (void)runAsModalSheet; |
56 - (IBAction)cancel:(id)sender; | 56 - (IBAction)cancel:(id)sender; |
57 - (IBAction)ok:(id)sender; | 57 - (IBAction)ok:(id)sender; |
58 | 58 |
59 @end | 59 @end |
60 | 60 |
61 #endif /* CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ */ | 61 #endif /* CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ */ |
OLD | NEW |