OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_manifest_constants.h" | 5 #include "chrome/common/extensions/extension_manifest_constants.h" |
6 | 6 |
7 namespace extension_manifest_keys { | 7 namespace extension_manifest_keys { |
8 | 8 |
9 const char kAllFrames[] = "all_frames"; | 9 const char kAllFrames[] = "all_frames"; |
10 const char kAltKey[] = "altKey"; | 10 const char kAltKey[] = "altKey"; |
11 const char kApp[] = "app"; | 11 const char kApp[] = "app"; |
12 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; | 12 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; |
13 const char kBackgroundPage[] = "background.page"; | 13 const char kBackgroundPage[] = "background.page"; |
14 const char kBackgroundPageLegacy[] = "background_page"; | 14 const char kBackgroundPageLegacy[] = "background_page"; |
15 const char kBackgroundPersistent[] = "background.persistent"; | 15 const char kBackgroundPersistent[] = "background.persistent"; |
16 const char kBackgroundScripts[] = "background.scripts"; | 16 const char kBackgroundScripts[] = "background.scripts"; |
17 const char kBrowserAction[] = "browser_action"; | 17 const char kBrowserAction[] = "browser_action"; |
18 const char kChromeURLOverrides[] = "chrome_url_overrides"; | 18 const char kChromeURLOverrides[] = "chrome_url_overrides"; |
19 const char kCommands[] = "commands"; | 19 const char kCommands[] = "commands"; |
| 20 const char kContentPack[] = "content_pack"; |
| 21 const char kContentPackSites[] = "sites"; |
20 const char kContentScripts[] = "content_scripts"; | 22 const char kContentScripts[] = "content_scripts"; |
21 const char kContentSecurityPolicy[] = "content_security_policy"; | 23 const char kContentSecurityPolicy[] = "content_security_policy"; |
22 const char kConvertedFromUserScript[] = "converted_from_user_script"; | 24 const char kConvertedFromUserScript[] = "converted_from_user_script"; |
23 const char kCss[] = "css"; | 25 const char kCss[] = "css"; |
24 const char kCtrlKey[] = "ctrlKey"; | 26 const char kCtrlKey[] = "ctrlKey"; |
25 const char kCurrentLocale[] = "current_locale"; | 27 const char kCurrentLocale[] = "current_locale"; |
26 const char kDefaultLocale[] = "default_locale"; | 28 const char kDefaultLocale[] = "default_locale"; |
27 const char kDescription[] = "description"; | 29 const char kDescription[] = "description"; |
28 const char kDevToolsPage[] = "devtools_page"; | 30 const char kDevToolsPage[] = "devtools_page"; |
29 const char kDisplayInLauncher[] = "display_in_launcher"; | 31 const char kDisplayInLauncher[] = "display_in_launcher"; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 "Invalid value for 'background.persistent'."; | 213 "Invalid value for 'background.persistent'."; |
212 const char kInvalidBackgroundPersistentNoPage[] = | 214 const char kInvalidBackgroundPersistentNoPage[] = |
213 "Must specify one of background.page or background.scripts to use" | 215 "Must specify one of background.page or background.scripts to use" |
214 " background.persistent."; | 216 " background.persistent."; |
215 const char kInvalidBrowserAction[] = | 217 const char kInvalidBrowserAction[] = |
216 "Invalid value for 'browser_action'."; | 218 "Invalid value for 'browser_action'."; |
217 const char kInvalidChromeURLOverrides[] = | 219 const char kInvalidChromeURLOverrides[] = |
218 "Invalid value for 'chrome_url_overrides'."; | 220 "Invalid value for 'chrome_url_overrides'."; |
219 const char kInvalidCommandsKey[] = | 221 const char kInvalidCommandsKey[] = |
220 "Invalid value for 'commands'."; | 222 "Invalid value for 'commands'."; |
| 223 const char kInvalidContentPack[] = |
| 224 "Invalid value for 'content_pack'."; |
| 225 const char kInvalidContentPackSites[] = |
| 226 "Invalid value for Content Pack sites - files must be strings."; |
221 const char kInvalidContentScript[] = | 227 const char kInvalidContentScript[] = |
222 "Invalid value for 'content_scripts[*]'."; | 228 "Invalid value for 'content_scripts[*]'."; |
223 const char kInvalidContentSecurityPolicy[] = | 229 const char kInvalidContentSecurityPolicy[] = |
224 "Invalid value for 'content_security_policy'."; | 230 "Invalid value for 'content_security_policy'."; |
225 const char kInvalidContentScriptsList[] = | 231 const char kInvalidContentScriptsList[] = |
226 "Invalid value for 'content_scripts'."; | 232 "Invalid value for 'content_scripts'."; |
227 const char kInvalidCss[] = | 233 const char kInvalidCss[] = |
228 "Invalid value for 'content_scripts[*].css[*]'."; | 234 "Invalid value for 'content_scripts[*].css[*]'."; |
229 const char kInvalidCssList[] = | 235 const char kInvalidCssList[] = |
230 "Required value 'content_scripts[*].css' is invalid."; | 236 "Required value 'content_scripts[*].css' is invalid."; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 const char kScriptBadgeTitleIgnored[] = | 546 const char kScriptBadgeTitleIgnored[] = |
541 "default_title specified in script_badge manifest section will not be " | 547 "default_title specified in script_badge manifest section will not be " |
542 "used."; | 548 "used."; |
543 const char kWebRequestConflictsWithLazyBackground[] = | 549 const char kWebRequestConflictsWithLazyBackground[] = |
544 "The 'webRequest' API cannot be used with event pages."; | 550 "The 'webRequest' API cannot be used with event pages."; |
545 #if defined(OS_CHROMEOS) | 551 #if defined(OS_CHROMEOS) |
546 const char kIllegalPlugins[] = | 552 const char kIllegalPlugins[] = |
547 "Extensions cannot install plugins on Chrome OS"; | 553 "Extensions cannot install plugins on Chrome OS"; |
548 #endif | 554 #endif |
549 } // namespace extension_manifest_errors | 555 } // namespace extension_manifest_errors |
OLD | NEW |