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 kBackgroundTransient[] = "background.transient"; | 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 kContentScripts[] = "content_scripts"; | 20 const char kContentScripts[] = "content_scripts"; |
21 const char kContentSecurityPolicy[] = "content_security_policy"; | 21 const char kContentSecurityPolicy[] = "content_security_policy"; |
22 const char kConvertedFromUserScript[] = "converted_from_user_script"; | 22 const char kConvertedFromUserScript[] = "converted_from_user_script"; |
23 const char kCss[] = "css"; | 23 const char kCss[] = "css"; |
24 const char kCtrlKey[] = "ctrlKey"; | 24 const char kCtrlKey[] = "ctrlKey"; |
25 const char kCurrentLocale[] = "current_locale"; | 25 const char kCurrentLocale[] = "current_locale"; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const char kInvalidBackgroundCombination[] = | 190 const char kInvalidBackgroundCombination[] = |
191 "The background.page and background.scripts properties cannot be used at " | 191 "The background.page and background.scripts properties cannot be used at " |
192 "the same time."; | 192 "the same time."; |
193 const char kInvalidBackgroundScript[] = | 193 const char kInvalidBackgroundScript[] = |
194 "Invalid value for 'background.scripts[*]'."; | 194 "Invalid value for 'background.scripts[*]'."; |
195 const char kInvalidBackgroundScripts[] = | 195 const char kInvalidBackgroundScripts[] = |
196 "Invalid value for 'background.scripts'."; | 196 "Invalid value for 'background.scripts'."; |
197 const char kInvalidBackgroundInHostedApp[] = | 197 const char kInvalidBackgroundInHostedApp[] = |
198 "Invalid value for 'background_page'. Hosted apps must specify an " | 198 "Invalid value for 'background_page'. Hosted apps must specify an " |
199 "absolute HTTPS URL for the background page."; | 199 "absolute HTTPS URL for the background page."; |
200 const char kInvalidBackgroundTransient[] = | 200 const char kInvalidBackgroundPersistent[] = |
201 "Invalid value for 'background.transient'."; | 201 "Invalid value for 'background.persistent'."; |
202 const char kInvalidBackgroundTransientNoPage[] = | 202 const char kInvalidBackgroundPersistentNoPage[] = |
203 "Must specify one of background.page or background.scripts to use" | 203 "Must specify one of background.page or background.scripts to use" |
204 " background.transient."; | 204 " background.persistent."; |
205 const char kInvalidBrowserAction[] = | 205 const char kInvalidBrowserAction[] = |
206 "Invalid value for 'browser_action'."; | 206 "Invalid value for 'browser_action'."; |
207 const char kInvalidChromeURLOverrides[] = | 207 const char kInvalidChromeURLOverrides[] = |
208 "Invalid value for 'chrome_url_overrides'."; | 208 "Invalid value for 'chrome_url_overrides'."; |
209 const char kInvalidCommandsKey[] = | 209 const char kInvalidCommandsKey[] = |
210 "Invalid value for 'commands'."; | 210 "Invalid value for 'commands'."; |
211 const char kInvalidContentScript[] = | 211 const char kInvalidContentScript[] = |
212 "Invalid value for 'content_scripts[*]'."; | 212 "Invalid value for 'content_scripts[*]'."; |
213 const char kInvalidContentSecurityPolicy[] = | 213 const char kInvalidContentSecurityPolicy[] = |
214 "Invalid value for 'content_security_policy'."; | 214 "Invalid value for 'content_security_policy'."; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 "Loading platform_app extension type is turned off by default. " | 471 "Loading platform_app extension type is turned off by default. " |
472 "You can enable this type with the --enable-platform-apps " | 472 "You can enable this type with the --enable-platform-apps " |
473 "command-line flag."; | 473 "command-line flag."; |
474 const char kReservedMessageFound[] = | 474 const char kReservedMessageFound[] = |
475 "Reserved key * found in message catalog."; | 475 "Reserved key * found in message catalog."; |
476 #if defined(OS_CHROMEOS) | 476 #if defined(OS_CHROMEOS) |
477 const char kIllegalPlugins[] = | 477 const char kIllegalPlugins[] = |
478 "Extensions cannot install plugins on Chrome OS"; | 478 "Extensions cannot install plugins on Chrome OS"; |
479 #endif | 479 #endif |
480 } // namespace extension_manifest_errors | 480 } // namespace extension_manifest_errors |
OLD | NEW |