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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h

Issue 816223008: Update UI for WebStore bundle installs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bundles_api
Patch Set: style fix Created 5 years, 8 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
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698