| OLD | NEW |
| 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Present only in the inline install dialog. | 34 // Present only in the inline install dialog. |
| 35 IBOutlet NSBox* warningsSeparator_; // Only when there are permissions. | 35 IBOutlet NSBox* warningsSeparator_; // Only when there are permissions. |
| 36 IBOutlet NSView* ratingStars_; | 36 IBOutlet NSView* ratingStars_; |
| 37 IBOutlet NSTextField* ratingCountField_; | 37 IBOutlet NSTextField* ratingCountField_; |
| 38 IBOutlet NSTextField* userCountField_; | 38 IBOutlet NSTextField* userCountField_; |
| 39 | 39 |
| 40 NSWindow* parentWindow_; // weak | 40 NSWindow* parentWindow_; // weak |
| 41 Profile* profile_; // weak | 41 Profile* profile_; // weak |
| 42 ExtensionInstallUI::Delegate* delegate_; // weak | 42 ExtensionInstallUI::Delegate* delegate_; // weak |
| 43 const Extension* extension_; // weak | |
| 44 scoped_ptr<ExtensionInstallUI::Prompt> prompt_; | 43 scoped_ptr<ExtensionInstallUI::Prompt> prompt_; |
| 45 SkBitmap icon_; | |
| 46 } | 44 } |
| 47 | 45 |
| 48 // For unit test use only | 46 // For unit test use only |
| 49 @property(nonatomic, readonly) NSImageView* iconView; | 47 @property(nonatomic, readonly) NSImageView* iconView; |
| 50 @property(nonatomic, readonly) NSTextField* titleField; | 48 @property(nonatomic, readonly) NSTextField* titleField; |
| 51 @property(nonatomic, readonly) NSTextField* subtitleField; | 49 @property(nonatomic, readonly) NSTextField* subtitleField; |
| 52 @property(nonatomic, readonly) NSTextField* warningsField; | 50 @property(nonatomic, readonly) NSTextField* warningsField; |
| 53 @property(nonatomic, readonly) NSButton* cancelButton; | 51 @property(nonatomic, readonly) NSButton* cancelButton; |
| 54 @property(nonatomic, readonly) NSButton* okButton; | 52 @property(nonatomic, readonly) NSButton* okButton; |
| 55 @property(nonatomic, readonly) NSBox* warningsSeparator; | 53 @property(nonatomic, readonly) NSBox* warningsSeparator; |
| 56 @property(nonatomic, readonly) NSView* ratingStars; | 54 @property(nonatomic, readonly) NSView* ratingStars; |
| 57 @property(nonatomic, readonly) NSTextField* ratingCountField; | 55 @property(nonatomic, readonly) NSTextField* ratingCountField; |
| 58 @property(nonatomic, readonly) NSTextField* userCountField; | 56 @property(nonatomic, readonly) NSTextField* userCountField; |
| 59 | 57 |
| 60 - (id)initWithParentWindow:(NSWindow*)window | 58 - (id)initWithParentWindow:(NSWindow*)window |
| 61 profile:(Profile*)profile | 59 profile:(Profile*)profile |
| 62 extension:(const Extension*)extension | |
| 63 delegate:(ExtensionInstallUI::Delegate*)delegate | 60 delegate:(ExtensionInstallUI::Delegate*)delegate |
| 64 icon:(SkBitmap*)bitmap | |
| 65 prompt:(const ExtensionInstallUI::Prompt&)prompt; | 61 prompt:(const ExtensionInstallUI::Prompt&)prompt; |
| 66 - (void)runAsModalSheet; | 62 - (void)runAsModalSheet; |
| 67 - (IBAction)storeLinkClicked:(id)sender; // Callback for "View details" link. | 63 - (IBAction)storeLinkClicked:(id)sender; // Callback for "View details" link. |
| 68 - (IBAction)cancel:(id)sender; | 64 - (IBAction)cancel:(id)sender; |
| 69 - (IBAction)ok:(id)sender; | 65 - (IBAction)ok:(id)sender; |
| 70 | 66 |
| 71 @end | 67 @end |
| 72 | 68 |
| 73 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLLE
R_H_ | 69 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLLE
R_H_ |
| OLD | NEW |