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

Unified Diff: chrome/common/extensions/extension.h

Issue 6321006: Add "sidebar" section to extension manifest:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 71703)
+++ chrome/common/extensions/extension.h (working copy)
@@ -26,6 +26,7 @@
class DictionaryValue;
class ExtensionAction;
class ExtensionResource;
+class ExtensionSidebarDefaults;
class SkBitmap;
class Version;
@@ -151,6 +152,7 @@
// Max size (both dimensions) for browser and page actions.
static const int kPageActionIconMaxSize;
static const int kBrowserActionIconMaxSize;
+ static const int kSidebarIconMaxSize;
// Each permission is a module that the extension is permitted to use.
//
@@ -414,6 +416,9 @@
const UserScriptList& content_scripts() const { return content_scripts_; }
ExtensionAction* page_action() const { return page_action_.get(); }
ExtensionAction* browser_action() const { return browser_action_.get(); }
+ ExtensionSidebarDefaults* sidebar_defaults() const {
+ return sidebar_defaults_.get();
+ }
const std::vector<PluginInfo>& plugins() const { return plugins_; }
const GURL& background_url() const { return background_url_; }
const GURL& options_url() const { return options_url_; }
@@ -533,6 +538,11 @@
ExtensionAction* LoadExtensionActionHelper(
const DictionaryValue* extension_action, std::string* error);
+ // Helper method to load a ExtensionSidebarDefaults from the sidebar manifest
Aaron Boodman 2011/01/20 00:36:11 s/load a/load an/
Aleksey Shlyapnikov 2011/01/20 02:41:43 Done.
+ // entry.
+ ExtensionSidebarDefaults* LoadExtensionSidebarDefaults(
+ const DictionaryValue* sidebar, std::string* error);
+
// Calculates the effective host permissions from the permissions and content
// script petterns.
void InitEffectiveHostPermissions();
@@ -626,6 +636,9 @@
// The extension's browser action, if any.
scoped_ptr<ExtensionAction> browser_action_;
+ // The extension's sidebar, if any.
+ scoped_ptr<ExtensionSidebarDefaults> sidebar_defaults_;
+
// Optional list of NPAPI plugins and associated properties.
std::vector<PluginInfo> plugins_;

Powered by Google App Engine
This is Rietveld 408576698