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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h

Issue 9460045: Add Mac interface for installing bundles of extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h
index c9386cfc419c858befef36b114f33e9cda5f92a3..6f47e4d063d82d96936d0befad2a84e77b83f3a3 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.h
@@ -19,6 +19,10 @@ class ExtensionLoadedNotificationObserver;
@class HoverCloseButton;
@class InfoBubbleView;
+namespace extensions {
+class BundleInstaller;
+}
+
namespace extension_installed_bubble {
// Maximum height or width of extension's icon (corresponds to Windows & GTK).
@@ -35,7 +39,8 @@ typedef enum {
kBrowserAction,
kGeneric,
kOmniboxKeyword,
- kPageAction
+ kPageAction,
+ kBundle,
} ExtensionType;
}
@@ -49,6 +54,7 @@ typedef enum {
@private
NSWindow* parentWindow_; // weak
const Extension* extension_; // weak
+ const extensions::BundleInstaller* bundle_; // weak
Browser* browser_; // weak
scoped_nsobject<NSImage> icon_;
@@ -72,15 +78,22 @@ typedef enum {
// Only shown for page actions and omnibox keywords.
IBOutlet NSTextField* extraInfoMsg_;
IBOutlet NSTextField* extensionInstalledInfoMsg_;
+ // Only shown for bundle installs.
+ IBOutlet NSTextField* installedHeadingMsg_;
+ IBOutlet NSTextField* installedItemsMsg_;
+ IBOutlet NSTextField* failedHeadingMsg_;
+ IBOutlet NSTextField* failedItemsMsg_;
}
@property(nonatomic, readonly) const Extension* extension;
+@property(nonatomic, readonly) const extensions::BundleInstaller* bundle;
@property(nonatomic) BOOL pageActionRemoved;
// Initialize the window, and then create observers to wait for the extension
// to complete loading, or the browser window to close.
- (id)initWithParentWindow:(NSWindow*)parentWindow
extension:(const Extension*)extension
+ bundle:(const extensions::BundleInstaller*)bundle
browser:(Browser*)browser
icon:(SkBitmap)icon;

Powered by Google App Engine
This is Rietveld 408576698