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 kBackground[] = "background"; | 12 const char kBackground[] = "background"; |
13 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; | 13 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; |
14 const char kBackgroundPage[] = "background.page"; | 14 const char kBackgroundPage[] = "background.page"; |
15 const char kBackgroundPageLegacy[] = "background_page"; | 15 const char kBackgroundPageLegacy[] = "background_page"; |
16 const char kBackgroundPersistent[] = "background.persistent"; | 16 const char kBackgroundTransient[] = "background.transient"; |
17 const char kBackgroundScripts[] = "background.scripts"; | 17 const char kBackgroundScripts[] = "background.scripts"; |
18 const char kBrowserAction[] = "browser_action"; | 18 const char kBrowserAction[] = "browser_action"; |
19 const char kChromeURLOverrides[] = "chrome_url_overrides"; | 19 const char kChromeURLOverrides[] = "chrome_url_overrides"; |
20 const char kCommands[] = "commands"; | 20 const char kCommands[] = "commands"; |
21 const char kContentScripts[] = "content_scripts"; | 21 const char kContentScripts[] = "content_scripts"; |
22 const char kContentSecurityPolicy[] = "content_security_policy"; | 22 const char kContentSecurityPolicy[] = "content_security_policy"; |
23 const char kConvertedFromUserScript[] = "converted_from_user_script"; | 23 const char kConvertedFromUserScript[] = "converted_from_user_script"; |
24 const char kCss[] = "css"; | 24 const char kCss[] = "css"; |
25 const char kCtrlKey[] = "ctrlKey"; | 25 const char kCtrlKey[] = "ctrlKey"; |
26 const char kCurrentLocale[] = "current_locale"; | 26 const char kCurrentLocale[] = "current_locale"; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 const char kInvalidBackgroundCombination[] = | 187 const char kInvalidBackgroundCombination[] = |
188 "The background.page and background.scripts properties cannot be used at " | 188 "The background.page and background.scripts properties cannot be used at " |
189 "the same time."; | 189 "the same time."; |
190 const char kInvalidBackgroundScript[] = | 190 const char kInvalidBackgroundScript[] = |
191 "Invalid value for 'background.scripts[*]'."; | 191 "Invalid value for 'background.scripts[*]'."; |
192 const char kInvalidBackgroundScripts[] = | 192 const char kInvalidBackgroundScripts[] = |
193 "Invalid value for 'background.scripts'."; | 193 "Invalid value for 'background.scripts'."; |
194 const char kInvalidBackgroundInHostedApp[] = | 194 const char kInvalidBackgroundInHostedApp[] = |
195 "Invalid value for 'background_page'. Hosted apps must specify an " | 195 "Invalid value for 'background_page'. Hosted apps must specify an " |
196 "absolute HTTPS URL for the background page."; | 196 "absolute HTTPS URL for the background page."; |
197 const char kInvalidBackgroundPersistent[] = | 197 const char kInvalidBackgroundTransient[] = |
198 "Invalid value for 'background.persistent'."; | 198 "Invalid value for 'background.transient'."; |
199 const char kInvalidBackgroundPersistentNoPage[] = | 199 const char kInvalidBackgroundTransientNoPage[] = |
200 "Must specify one of background.page or background.scripts to use" | 200 "Must specify one of background.page or background.scripts to use" |
201 " background.persistent."; | 201 " background.transient."; |
202 const char kInvalidBrowserAction[] = | 202 const char kInvalidBrowserAction[] = |
203 "Invalid value for 'browser_action'."; | 203 "Invalid value for 'browser_action'."; |
204 const char kInvalidChromeURLOverrides[] = | 204 const char kInvalidChromeURLOverrides[] = |
205 "Invalid value for 'chrome_url_overrides'."; | 205 "Invalid value for 'chrome_url_overrides'."; |
206 const char kInvalidCommandsKey[] = | 206 const char kInvalidCommandsKey[] = |
207 "Invalid value for 'commands'."; | 207 "Invalid value for 'commands'."; |
208 const char kInvalidContentScript[] = | 208 const char kInvalidContentScript[] = |
209 "Invalid value for 'content_scripts[*]'."; | 209 "Invalid value for 'content_scripts[*]'."; |
210 const char kInvalidContentSecurityPolicy[] = | 210 const char kInvalidContentSecurityPolicy[] = |
211 "Invalid value for 'content_security_policy'."; | 211 "Invalid value for 'content_security_policy'."; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 "Loading platform_app extension type is turned off by default. " | 464 "Loading platform_app extension type is turned off by default. " |
465 "You can enable this type with the --enable-platform-apps " | 465 "You can enable this type with the --enable-platform-apps " |
466 "command-line flag."; | 466 "command-line flag."; |
467 const char kReservedMessageFound[] = | 467 const char kReservedMessageFound[] = |
468 "Reserved key * found in message catalog."; | 468 "Reserved key * found in message catalog."; |
469 #if defined(OS_CHROMEOS) | 469 #if defined(OS_CHROMEOS) |
470 const char kIllegalPlugins[] = | 470 const char kIllegalPlugins[] = |
471 "Extensions cannot install plugins on Chrome OS"; | 471 "Extensions cannot install plugins on Chrome OS"; |
472 #endif | 472 #endif |
473 } // namespace extension_manifest_errors | 473 } // namespace extension_manifest_errors |
OLD | NEW |