summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_message_bundle.h
diff options
context:
space:
mode:
authorcira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-18 22:25:15 +0000
committercira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-18 22:25:15 +0000
commite585f48a189f0e6558c6adc583738c6271980f98 (patch)
tree34e0caf11180c2aaa859e0539984b326ff84685d /chrome/common/extensions/extension_message_bundle.h
parent493471842fef2fc2bee331a715058cc3c4839c95 (diff)
downloadchromium_src-e585f48a189f0e6558c6adc583738c6271980f98.zip
chromium_src-e585f48a189f0e6558c6adc583738c6271980f98.tar.gz
chromium_src-e585f48a189f0e6558c6adc583738c6271980f98.tar.bz2
Adding @@extension_id reserved message to l10n message map for extension.
It's added outside of ExtensionMessageBundle so that non-localized extensions can use it. Developer doesn't have to define default_locale in the manifest in order to get it working. With this change every extension css file will go through message replacement process (only localized extensions went through that before). This change will allow following construct in extension css: body { background-image:url('chrome-extension://__MSG_@@extension_id__/background.png'); } BUG=35208 TEST=Add an background image to your extension, and refer to it from css file using __MSG_@@extension_id__. Image should show up in the background. Review URL: http://codereview.chromium.org/628009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_message_bundle.h')
-rw-r--r--chrome/common/extensions/extension_message_bundle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_message_bundle.h b/chrome/common/extensions/extension_message_bundle.h
index 6e59fe3..d483ba0 100644
--- a/chrome/common/extensions/extension_message_bundle.h
+++ b/chrome/common/extensions/extension_message_bundle.h
@@ -40,6 +40,10 @@ class ExtensionMessageBundle {
static const char* kBidiReversedDirectionKey;
static const char* kBidiStartEdgeKey;
static const char* kBidiEndEdgeKey;
+ // Extension id gets added in the
+ // browser/renderer_host/resource_message_filter.cc to enable message
+ // replacement for non-localized extensions.
+ static const char* kExtensionIdKey;
// Values for some of the reserved messages.
static const char* kBidiLeftEdgeValue;