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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 340057: Add first-class support for user scripts (Closed)
Patch Set: newness Created 11 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/extensions/extension_constants.h" 5 #include "chrome/common/extensions/extension_constants.h"
6 6
7 namespace extension_manifest_keys { 7 namespace extension_manifest_keys {
8 8
9 const wchar_t* kBackground = L"background_page"; 9 const wchar_t* kBackground = L"background_page";
10 const wchar_t* kBrowserAction = L"browser_action"; 10 const wchar_t* kBrowserAction = L"browser_action";
11 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; 11 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides";
12 const wchar_t* kContentScripts = L"content_scripts"; 12 const wchar_t* kContentScripts = L"content_scripts";
13 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script";
13 const wchar_t* kCss = L"css"; 14 const wchar_t* kCss = L"css";
14 const wchar_t* kDefaultLocale = L"default_locale"; 15 const wchar_t* kDefaultLocale = L"default_locale";
15 const wchar_t* kDescription = L"description"; 16 const wchar_t* kDescription = L"description";
16 const wchar_t* kIcons = L"icons"; 17 const wchar_t* kIcons = L"icons";
17 const wchar_t* kJs = L"js"; 18 const wchar_t* kJs = L"js";
18 const wchar_t* kMatches = L"matches"; 19 const wchar_t* kMatches = L"matches";
20 const wchar_t* kIncludeGlobs = L"include_globs";
21 const wchar_t* kExcludeGlobs = L"exclude_globs";
19 const wchar_t* kName = L"name"; 22 const wchar_t* kName = L"name";
20 const wchar_t* kPageActionId = L"id"; 23 const wchar_t* kPageActionId = L"id";
21 const wchar_t* kPageAction = L"page_action"; 24 const wchar_t* kPageAction = L"page_action";
22 const wchar_t* kPageActions = L"page_actions"; 25 const wchar_t* kPageActions = L"page_actions";
23 const wchar_t* kPageActionIcons = L"icons"; 26 const wchar_t* kPageActionIcons = L"icons";
24 const wchar_t* kPageActionDefaultIcon = L"default_icon"; 27 const wchar_t* kPageActionDefaultIcon = L"default_icon";
25 const wchar_t* kPageActionDefaultTitle = L"default_title"; 28 const wchar_t* kPageActionDefaultTitle = L"default_title";
26 const wchar_t* kPageActionPopup = L"popup"; 29 const wchar_t* kPageActionPopup = L"popup";
27 const wchar_t* kPageActionPopupHeight = L"height"; 30 const wchar_t* kPageActionPopupHeight = L"height";
28 const wchar_t* kPageActionPopupPath = L"path"; 31 const wchar_t* kPageActionPopupPath = L"path";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const char* kInvalidContentScript = 71 const char* kInvalidContentScript =
69 "Invalid value for 'content_scripts[*]'."; 72 "Invalid value for 'content_scripts[*]'.";
70 const char* kInvalidContentScriptsList = 73 const char* kInvalidContentScriptsList =
71 "Invalid value for 'content_scripts'."; 74 "Invalid value for 'content_scripts'.";
72 const char* kInvalidCss = 75 const char* kInvalidCss =
73 "Invalid value for 'content_scripts[*].css[*]'."; 76 "Invalid value for 'content_scripts[*].css[*]'.";
74 const char* kInvalidCssList = 77 const char* kInvalidCssList =
75 "Required value 'content_scripts[*].css is invalid."; 78 "Required value 'content_scripts[*].css is invalid.";
76 const char* kInvalidDescription = 79 const char* kInvalidDescription =
77 "Invalid value for 'description'."; 80 "Invalid value for 'description'.";
81 const char* kInvalidGlobList =
82 "Invalid value for 'content_scripts[*].*'.";
83 const char* kInvalidGlob =
84 "Invalid value for 'content_scripts[*].*[*]'.";
78 const char* kInvalidIcons = 85 const char* kInvalidIcons =
79 "Invalid value for 'icons'."; 86 "Invalid value for 'icons'.";
80 const char* kInvalidIconPath = 87 const char* kInvalidIconPath =
81 "Invalid value for 'icons[\"*\"]'."; 88 "Invalid value for 'icons[\"*\"]'.";
82 const char* kInvalidJs = 89 const char* kInvalidJs =
83 "Invalid value for 'content_scripts[*].js[*]'."; 90 "Invalid value for 'content_scripts[*].js[*]'.";
84 const char* kInvalidJsList = 91 const char* kInvalidJsList =
85 "Required value 'content_scripts[*].js is invalid."; 92 "Required value 'content_scripts[*].js is invalid.";
86 const char* kInvalidKey = 93 const char* kInvalidKey =
87 "Value 'key' is missing or invalid."; 94 "Value 'key' is missing or invalid.";
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 "An extension cannot have both a page action and a browser action."; 181 "An extension cannot have both a page action and a browser action.";
175 const char* kThemesCannotContainExtensions = 182 const char* kThemesCannotContainExtensions =
176 "A theme cannot contain extensions code."; 183 "A theme cannot contain extensions code.";
177 const char* kLocalesNoDefaultLocaleSpecified = 184 const char* kLocalesNoDefaultLocaleSpecified =
178 "Localization used, but default_locale wasn't specified in the manifest."; 185 "Localization used, but default_locale wasn't specified in the manifest.";
179 const char* kLocalesNoValidLocaleNamesListed = 186 const char* kLocalesNoValidLocaleNamesListed =
180 "No valid locale name could be found in _locales directory."; 187 "No valid locale name could be found in _locales directory.";
181 const char* kInvalidOptionsPage = 188 const char* kInvalidOptionsPage =
182 "Invalid value for 'options_page'."; 189 "Invalid value for 'options_page'.";
183 } // namespace extension_manifest_errors 190 } // namespace extension_manifest_errors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698