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 kEventName[] = "event_name"; | 31 const char kEventName[] = "event_name"; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 "Invalid value for 'background.persistent'."; | 205 "Invalid value for 'background.persistent'."; |
204 const char kInvalidBackgroundPersistentNoPage[] = | 206 const char kInvalidBackgroundPersistentNoPage[] = |
205 "Must specify one of background.page or background.scripts to use" | 207 "Must specify one of background.page or background.scripts to use" |
206 " background.persistent."; | 208 " background.persistent."; |
207 const char kInvalidBrowserAction[] = | 209 const char kInvalidBrowserAction[] = |
208 "Invalid value for 'browser_action'."; | 210 "Invalid value for 'browser_action'."; |
209 const char kInvalidChromeURLOverrides[] = | 211 const char kInvalidChromeURLOverrides[] = |
210 "Invalid value for 'chrome_url_overrides'."; | 212 "Invalid value for 'chrome_url_overrides'."; |
211 const char kInvalidCommandsKey[] = | 213 const char kInvalidCommandsKey[] = |
212 "Invalid value for 'commands'."; | 214 "Invalid value for 'commands'."; |
| 215 const char kInvalidContentPack[] = |
| 216 "Invalid value for 'content_pack'."; |
| 217 const char kInvalidContentPackSites[] = |
| 218 "Invalid value for Content Pack sites - files must be strings."; |
213 const char kInvalidContentScript[] = | 219 const char kInvalidContentScript[] = |
214 "Invalid value for 'content_scripts[*]'."; | 220 "Invalid value for 'content_scripts[*]'."; |
215 const char kInvalidContentSecurityPolicy[] = | 221 const char kInvalidContentSecurityPolicy[] = |
216 "Invalid value for 'content_security_policy'."; | 222 "Invalid value for 'content_security_policy'."; |
217 const char kInvalidContentScriptsList[] = | 223 const char kInvalidContentScriptsList[] = |
218 "Invalid value for 'content_scripts'."; | 224 "Invalid value for 'content_scripts'."; |
219 const char kInvalidCss[] = | 225 const char kInvalidCss[] = |
220 "Invalid value for 'content_scripts[*].css[*]'."; | 226 "Invalid value for 'content_scripts[*].css[*]'."; |
221 const char kInvalidCssList[] = | 227 const char kInvalidCssList[] = |
222 "Required value 'content_scripts[*].css' is invalid."; | 228 "Required value 'content_scripts[*].css' is invalid."; |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 const char kScriptBadgeTitleIgnored[] = | 501 const char kScriptBadgeTitleIgnored[] = |
496 "default_title specified in script_badge manifest section will not be " | 502 "default_title specified in script_badge manifest section will not be " |
497 "used."; | 503 "used."; |
498 const char kWebRequestConflictsWithLazyBackground[] = | 504 const char kWebRequestConflictsWithLazyBackground[] = |
499 "The 'webRequest' API cannot be used with event pages."; | 505 "The 'webRequest' API cannot be used with event pages."; |
500 #if defined(OS_CHROMEOS) | 506 #if defined(OS_CHROMEOS) |
501 const char kIllegalPlugins[] = | 507 const char kIllegalPlugins[] = |
502 "Extensions cannot install plugins on Chrome OS"; | 508 "Extensions cannot install plugins on Chrome OS"; |
503 #endif | 509 #endif |
504 } // namespace extension_manifest_errors | 510 } // namespace extension_manifest_errors |
OLD | NEW |