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

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

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 5 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 | Annotate | Revision Log
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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Controller for the extension installed bubble. This bubble pops up after 53 // Controller for the extension installed bubble. This bubble pops up after
54 // an extension has been installed to inform the user that the install happened 54 // an extension has been installed to inform the user that the install happened
55 // properly, and to let the user know how to manage this extension in the 55 // properly, and to let the user know how to manage this extension in the
56 // future. 56 // future.
57 @interface ExtensionInstalledBubbleController : 57 @interface ExtensionInstalledBubbleController :
58 BaseBubbleController<NSTextViewDelegate> { 58 BaseBubbleController<NSTextViewDelegate> {
59 @private 59 @private
60 const extensions::Extension* extension_; // weak 60 const extensions::Extension* extension_; // weak
61 const extensions::BundleInstaller* bundle_; // weak 61 const extensions::BundleInstaller* bundle_; // weak
62 Browser* browser_; // weak 62 Browser* browser_; // weak
63 scoped_nsobject<NSImage> icon_; 63 base::scoped_nsobject<NSImage> icon_;
64 64
65 extension_installed_bubble::ExtensionType type_; 65 extension_installed_bubble::ExtensionType type_;
66 66
67 // We need to remove the page action immediately when the browser window 67 // We need to remove the page action immediately when the browser window
68 // closes while this bubble is still open, so the bubble's closing animation 68 // closes while this bubble is still open, so the bubble's closing animation
69 // doesn't overlap browser destruction. 69 // doesn't overlap browser destruction.
70 BOOL pageActionPreviewShowing_; 70 BOOL pageActionPreviewShowing_;
71 71
72 // Lets us register for EXTENSION_LOADED notifications. The actual 72 // Lets us register for EXTENSION_LOADED notifications. The actual
73 // notifications are sent to the observer object, which proxies them 73 // notifications are sent to the observer object, which proxies them
(...skipping 10 matching lines...) Expand all
84 // Only shown for app installs. 84 // Only shown for app installs.
85 IBOutlet NSButton* appShortcutLink_; 85 IBOutlet NSButton* appShortcutLink_;
86 // Only shown for extensions with commands. 86 // Only shown for extensions with commands.
87 IBOutlet NSButton* manageShortcutLink_; 87 IBOutlet NSButton* manageShortcutLink_;
88 // Only shown if the sign-in promo is active. 88 // Only shown if the sign-in promo is active.
89 IBOutlet NSTextField* promoPlaceholder_; 89 IBOutlet NSTextField* promoPlaceholder_;
90 // Text fields don't work as well with embedded links as text views, but 90 // Text fields don't work as well with embedded links as text views, but
91 // text views cannot conveniently be created in IB. The xib file contains 91 // text views cannot conveniently be created in IB. The xib file contains
92 // a text field |promoPlaceholder_| that's replaced by this text view |promo_| 92 // a text field |promoPlaceholder_| that's replaced by this text view |promo_|
93 // in -awakeFromNib. 93 // in -awakeFromNib.
94 scoped_nsobject<HyperlinkTextView> promo_; 94 base::scoped_nsobject<HyperlinkTextView> promo_;
95 // Only shown for bundle installs. 95 // Only shown for bundle installs.
96 IBOutlet NSTextField* installedHeadingMsg_; 96 IBOutlet NSTextField* installedHeadingMsg_;
97 IBOutlet NSTextField* installedItemsMsg_; 97 IBOutlet NSTextField* installedItemsMsg_;
98 IBOutlet NSTextField* failedHeadingMsg_; 98 IBOutlet NSTextField* failedHeadingMsg_;
99 IBOutlet NSTextField* failedItemsMsg_; 99 IBOutlet NSTextField* failedItemsMsg_;
100 } 100 }
101 101
102 @property(nonatomic, readonly) const extensions::Extension* extension; 102 @property(nonatomic, readonly) const extensions::Extension* extension;
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;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 - (NSRect)headingFrame; 144 - (NSRect)headingFrame;
145 - (NSRect)frameOfHowToUse; 145 - (NSRect)frameOfHowToUse;
146 - (NSRect)frameOfHowToManage; 146 - (NSRect)frameOfHowToManage;
147 - (NSRect)frameOfSigninPromo; 147 - (NSRect)frameOfSigninPromo;
148 - (BOOL)showSyncPromo; 148 - (BOOL)showSyncPromo;
149 - (NSButton*)appInstalledShortcutLink; 149 - (NSButton*)appInstalledShortcutLink;
150 150
151 @end // ExtensionInstalledBubbleController(ExposedForTesting) 151 @end // ExtensionInstalledBubbleController(ExposedForTesting)
152 152
153 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROL LER_H_ 153 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_CONTROL LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698