summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/extensions/extension_installed_bubble.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/extensions/extension_installed_bubble.h')
-rw-r--r--chrome/browser/ui/extensions/extension_installed_bubble.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/ui/extensions/extension_installed_bubble.h b/chrome/browser/ui/extensions/extension_installed_bubble.h
index 08bbf95..dddf228 100644
--- a/chrome/browser/ui/extensions/extension_installed_bubble.h
+++ b/chrome/browser/ui/extensions/extension_installed_bubble.h
@@ -15,6 +15,7 @@
class Browser;
namespace extensions {
+class Command;
class Extension;
class ExtensionRegistry;
}
@@ -64,10 +65,14 @@ class ExtensionInstalledBubble : public content::NotificationObserver,
const Browser* browser() const { return browser_; }
const SkBitmap& icon() const { return icon_; }
BubbleType type() const { return type_; }
+ bool has_command_keybinding() const { return action_command_; }
// Stop listening to NOTIFICATION_BROWSER_CLOSING.
void IgnoreBrowserClosing();
+ // Returns the string describing how to use the new extension.
+ base::string16 GetHowToUseDescription() const;
+
private:
// Delegates showing the view to our |view_|. Called internally via PostTask.
void ShowInternal();
@@ -95,6 +100,9 @@ class ExtensionInstalledBubble : public content::NotificationObserver,
BubbleType type_;
content::NotificationRegistrar registrar_;
+ // The command to execute the extension action, if one exists.
+ scoped_ptr<extensions::Command> action_command_;
+
// Listen to extension load, unloaded notifications.
ScopedObserver<extensions::ExtensionRegistry,
extensions::ExtensionRegistryObserver>