From e585f48a189f0e6558c6adc583738c6271980f98 Mon Sep 17 00:00:00 2001 From: "cira@chromium.org" Date: Thu, 18 Feb 2010 22:25:15 +0000 Subject: 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 --- chrome/common/extensions/extension_message_bundle.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/common/extensions/extension_message_bundle.h') 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; -- cgit v1.1