| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "extensions/common/manifest_constants.h" | 6 #include "extensions/common/manifest_constants.h" |
| 7 | 7 |
| 8 namespace extensions { | 8 namespace extensions { |
| 9 | 9 |
| 10 namespace manifest_keys { | 10 namespace manifest_keys { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 const char kBrowserAction[] = "browser_action"; | 25 const char kBrowserAction[] = "browser_action"; |
| 26 const char kChromeURLOverrides[] = "chrome_url_overrides"; | 26 const char kChromeURLOverrides[] = "chrome_url_overrides"; |
| 27 const char kCommands[] = "commands"; | 27 const char kCommands[] = "commands"; |
| 28 const char kContentCapabilities[] = "content_capabilities"; | 28 const char kContentCapabilities[] = "content_capabilities"; |
| 29 const char kContentScripts[] = "content_scripts"; | 29 const char kContentScripts[] = "content_scripts"; |
| 30 const char kContentSecurityPolicy[] = "content_security_policy"; | 30 const char kContentSecurityPolicy[] = "content_security_policy"; |
| 31 const char kConvertedFromUserScript[] = "converted_from_user_script"; | 31 const char kConvertedFromUserScript[] = "converted_from_user_script"; |
| 32 const char kCss[] = "css"; | 32 const char kCss[] = "css"; |
| 33 const char kCtrlKey[] = "ctrlKey"; | 33 const char kCtrlKey[] = "ctrlKey"; |
| 34 const char kCurrentLocale[] = "current_locale"; | 34 const char kCurrentLocale[] = "current_locale"; |
| 35 const char kDeclarativeNetRequestRulesetLocation[] = |
| 36 "declarative_net_request_rules"; |
| 35 const char kDefaultLocale[] = "default_locale"; | 37 const char kDefaultLocale[] = "default_locale"; |
| 36 const char kDescription[] = "description"; | 38 const char kDescription[] = "description"; |
| 37 const char kDevToolsPage[] = "devtools_page"; | 39 const char kDevToolsPage[] = "devtools_page"; |
| 38 const char kDisplayInLauncher[] = "display_in_launcher"; | 40 const char kDisplayInLauncher[] = "display_in_launcher"; |
| 39 const char kDisplayInNewTabPage[] = "display_in_new_tab_page"; | 41 const char kDisplayInNewTabPage[] = "display_in_new_tab_page"; |
| 40 const char kEventName[] = "event_name"; | 42 const char kEventName[] = "event_name"; |
| 41 const char kExcludeGlobs[] = "exclude_globs"; | 43 const char kExcludeGlobs[] = "exclude_globs"; |
| 42 const char kExcludeMatches[] = "exclude_matches"; | 44 const char kExcludeMatches[] = "exclude_matches"; |
| 43 const char kExport[] = "export"; | 45 const char kExport[] = "export"; |
| 44 const char kExternallyConnectable[] = "externally_connectable"; | 46 const char kExternallyConnectable[] = "externally_connectable"; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 const char kFileSystemProviderCapabilities[] = | 195 const char kFileSystemProviderCapabilities[] = |
| 194 "file_system_provider_capabilities"; | 196 "file_system_provider_capabilities"; |
| 195 #endif | 197 #endif |
| 196 | 198 |
| 197 } // namespace manifest_keys | 199 } // namespace manifest_keys |
| 198 | 200 |
| 199 namespace manifest_values { | 201 namespace manifest_values { |
| 200 | 202 |
| 201 const char kApiKey[] = "api_key"; | 203 const char kApiKey[] = "api_key"; |
| 202 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; | 204 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; |
| 205 const char kDeclarativeNetRequest[] = "declarativeNetRequest"; |
| 203 const char kIncognitoNotAllowed[] = "not_allowed"; | 206 const char kIncognitoNotAllowed[] = "not_allowed"; |
| 204 const char kIncognitoSplit[] = "split"; | 207 const char kIncognitoSplit[] = "split"; |
| 205 const char kIncognitoSpanning[] = "spanning"; | 208 const char kIncognitoSpanning[] = "spanning"; |
| 206 const char kIsolatedStorage[] = "storage"; | 209 const char kIsolatedStorage[] = "storage"; |
| 207 const char kKeybindingPlatformChromeOs[] = "chromeos"; | 210 const char kKeybindingPlatformChromeOs[] = "chromeos"; |
| 208 const char kKeybindingPlatformDefault[] = "default"; | 211 const char kKeybindingPlatformDefault[] = "default"; |
| 209 const char kKeybindingPlatformLinux[] = "linux"; | 212 const char kKeybindingPlatformLinux[] = "linux"; |
| 210 const char kKeybindingPlatformMac[] = "mac"; | 213 const char kKeybindingPlatformMac[] = "mac"; |
| 211 const char kKeybindingPlatformWin[] = "windows"; | 214 const char kKeybindingPlatformWin[] = "windows"; |
| 212 const char kKeyAlt[] = "Alt"; | 215 const char kKeyAlt[] = "Alt"; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 const char kCannotClaimAllHostsInExtent[] = | 291 const char kCannotClaimAllHostsInExtent[] = |
| 289 "Cannot claim all hosts ('*') in an extent."; | 292 "Cannot claim all hosts ('*') in an extent."; |
| 290 const char kCannotClaimAllURLsInExtent[] = | 293 const char kCannotClaimAllURLsInExtent[] = |
| 291 "Cannot claim all URLs in an extent."; | 294 "Cannot claim all URLs in an extent."; |
| 292 const char kCannotScriptGallery[] = | 295 const char kCannotScriptGallery[] = |
| 293 "The extensions gallery cannot be scripted."; | 296 "The extensions gallery cannot be scripted."; |
| 294 const char kCannotScriptSigninPage[] = | 297 const char kCannotScriptSigninPage[] = |
| 295 "The sign-in page cannot be scripted."; | 298 "The sign-in page cannot be scripted."; |
| 296 const char kChromeVersionTooLow[] = | 299 const char kChromeVersionTooLow[] = |
| 297 "This extension requires * version * or greater."; | 300 "This extension requires * version * or greater."; |
| 301 const char kDeclarativeNetRequestRequired[] = |
| 302 "The 'declarativeNetRequest' permission is required for the key"; |
| 298 const char kDisabledByPolicy[] = | 303 const char kDisabledByPolicy[] = |
| 299 "This extension has been disabled by your administrator."; | 304 "This extension has been disabled by your administrator."; |
| 300 const char kExpectString[] = "Expect string value."; | 305 const char kExpectString[] = "Expect string value."; |
| 301 const char kFileNotFound[] = "File not found: *."; | 306 const char kFileNotFound[] = "File not found: *."; |
| 302 const char kInvalidAboutPage[] = "Invalid value for 'about_page'."; | 307 const char kInvalidAboutPage[] = "Invalid value for 'about_page'."; |
| 303 const char kInvalidAboutPageExpectRelativePath[] = | 308 const char kInvalidAboutPageExpectRelativePath[] = |
| 304 "Invalid value for 'about_page'. Value must be a relative path."; | 309 "Invalid value for 'about_page'. Value must be a relative path."; |
| 305 const char kInvalidAllFrames[] = | 310 const char kInvalidAllFrames[] = |
| 306 "Invalid value for 'content_scripts[*].all_frames'."; | 311 "Invalid value for 'content_scripts[*].all_frames'."; |
| 307 const char kInvalidAppIconColor[] = "Invalid value for app.icon_color."; | 312 const char kInvalidAppIconColor[] = "Invalid value for app.icon_color."; |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 "'file_system_provider_capabilities' section to be specified in the " | 759 "'file_system_provider_capabilities' section to be specified in the " |
| 755 "manifest."; | 760 "manifest."; |
| 756 const char kInvalidFileSystemProviderMissingPermission[] = | 761 const char kInvalidFileSystemProviderMissingPermission[] = |
| 757 "The 'file_system_provider_capabilities' section requires the " | 762 "The 'file_system_provider_capabilities' section requires the " |
| 758 "'fileSystemProvider' permission to be specified in the manifest."; | 763 "'fileSystemProvider' permission to be specified in the manifest."; |
| 759 #endif | 764 #endif |
| 760 | 765 |
| 761 } // namespace manifest_errors | 766 } // namespace manifest_errors |
| 762 | 767 |
| 763 } // namespace extensions | 768 } // namespace extensions |
| OLD | NEW |