OLD | NEW |
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_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROLLER
_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROLLER
_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROLLER
_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROLLER
_H_ |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 IBOutlet NSButton* manageShortcutLink_; | 88 IBOutlet NSButton* manageShortcutLink_; |
89 // Only shown if the sign-in promo is active. | 89 // Only shown if the sign-in promo is active. |
90 IBOutlet NSTextField* promoPlaceholder_; | 90 IBOutlet NSTextField* promoPlaceholder_; |
91 // Text fields don't work as well with embedded links as text views, but | 91 // Text fields don't work as well with embedded links as text views, but |
92 // text views cannot conveniently be created in IB. The xib file contains | 92 // text views cannot conveniently be created in IB. The xib file contains |
93 // a text field |promoPlaceholder_| that's replaced by this text view |promo_| | 93 // a text field |promoPlaceholder_| that's replaced by this text view |promo_| |
94 // in -awakeFromNib. | 94 // in -awakeFromNib. |
95 base::scoped_nsobject<HyperlinkTextView> promo_; | 95 base::scoped_nsobject<HyperlinkTextView> promo_; |
96 // Only shown for bundle installs. | 96 // Only shown for bundle installs. |
97 IBOutlet NSTextField* installedHeadingMsg_; | 97 IBOutlet NSTextField* installedHeadingMsg_; |
98 IBOutlet NSTextField* installedItemsMsg_; | 98 IBOutlet NSView* installedItemsView_; |
99 IBOutlet NSTextField* failedHeadingMsg_; | 99 IBOutlet NSTextField* failedHeadingMsg_; |
100 IBOutlet NSTextField* failedItemsMsg_; | 100 IBOutlet NSView* failedItemsView_; |
101 } | 101 } |
102 | 102 |
103 @property(nonatomic, readonly) const extensions::BundleInstaller* bundle; | 103 @property(nonatomic, readonly) const extensions::BundleInstaller* bundle; |
104 @property(nonatomic) BOOL pageActionPreviewShowing; | 104 @property(nonatomic) BOOL pageActionPreviewShowing; |
105 | 105 |
106 // Initialize the window, and then create observers to wait for the extension | 106 // Initialize the window, and then create observers to wait for the extension |
107 // to complete loading, or the browser window to close. | 107 // to complete loading, or the browser window to close. |
108 - (id)initWithParentWindow:(NSWindow*)parentWindow | 108 - (id)initWithParentWindow:(NSWindow*)parentWindow |
109 extension:(const extensions::Extension*)extension | 109 extension:(const extensions::Extension*)extension |
110 bundle:(const extensions::BundleInstaller*)bundle | 110 bundle:(const extensions::BundleInstaller*)bundle |
(...skipping 29 matching lines...) Expand all Loading... |
140 - (NSRect)headingFrame; | 140 - (NSRect)headingFrame; |
141 - (NSRect)frameOfHowToUse; | 141 - (NSRect)frameOfHowToUse; |
142 - (NSRect)frameOfHowToManage; | 142 - (NSRect)frameOfHowToManage; |
143 - (NSRect)frameOfSigninPromo; | 143 - (NSRect)frameOfSigninPromo; |
144 - (BOOL)showSyncPromo; | 144 - (BOOL)showSyncPromo; |
145 - (NSButton*)appInstalledShortcutLink; | 145 - (NSButton*)appInstalledShortcutLink; |
146 | 146 |
147 @end // ExtensionInstalledBubbleController(ExposedForTesting) | 147 @end // ExtensionInstalledBubbleController(ExposedForTesting) |
148 | 148 |
149 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROL
LER_H_ | 149 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROL
LER_H_ |
OLD | NEW |