| 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 { | |
| 8 | |
| 9 const char kAllFrames[] = "all_frames"; | |
| 10 const char kAltKey[] = "altKey"; | |
| 11 const char kApp[] = "app"; | |
| 12 const char kAudio[] = "audio"; | |
| 13 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; | |
| 14 const char kBackgroundPage[] = "background.page"; | |
| 15 const char kBackgroundPageLegacy[] = "background_page"; | |
| 16 const char kBackgroundPersistent[] = "background.persistent"; | |
| 17 const char kBackgroundScripts[] = "background.scripts"; | |
| 18 const char kBrowserAction[] = "browser_action"; | |
| 19 const char kChromeURLOverrides[] = "chrome_url_overrides"; | |
| 20 const char kCommands[] = "commands"; | |
| 21 const char kContentPack[] = "content_pack"; | |
| 22 const char kContentPackSites[] = "sites"; | |
| 23 const char kContentScripts[] = "content_scripts"; | |
| 24 const char kContentSecurityPolicy[] = "content_security_policy"; | |
| 25 const char kConvertedFromUserScript[] = "converted_from_user_script"; | |
| 26 const char kCss[] = "css"; | |
| 27 const char kCtrlKey[] = "ctrlKey"; | |
| 28 const char kCurrentLocale[] = "current_locale"; | |
| 29 const char kDefaultLocale[] = "default_locale"; | |
| 30 const char kDescription[] = "description"; | |
| 31 const char kDevToolsPage[] = "devtools_page"; | |
| 32 const char kDisplayInLauncher[] = "display_in_launcher"; | |
| 33 const char kDisplayInNewTabPage[] = "display_in_new_tab_page"; | |
| 34 const char kEventName[] = "event_name"; | |
| 35 const char kExcludeGlobs[] = "exclude_globs"; | |
| 36 const char kExcludeMatches[] = "exclude_matches"; | |
| 37 const char kExport[] = "export"; | |
| 38 const char kExternallyConnectable[] = "externally_connectable"; | |
| 39 const char kFileAccessList[] = "file_access"; | |
| 40 const char kFileFilters[] = "file_filters"; | |
| 41 const char kFileBrowserHandlers[] = "file_browser_handlers"; | |
| 42 const char kMediaGalleriesHandlers[] = "media_galleries_handlers"; | |
| 43 const char kFileHandlers[] = "file_handlers"; | |
| 44 const char kFileHandlerExtensions[] = "extensions"; | |
| 45 const char kFileHandlerTitle[] = "title"; | |
| 46 const char kFileHandlerTypes[] = "types"; | |
| 47 const char kHomepageURL[] = "homepage_url"; | |
| 48 const char kIcons[] = "icons"; | |
| 49 const char kId[] = "id"; | |
| 50 const char kImport[] = "import"; | |
| 51 const char kIncognito[] = "incognito"; | |
| 52 const char kIncludeGlobs[] = "include_globs"; | |
| 53 const char kInputComponents[] = "input_components"; | |
| 54 const char kIsolation[] = "app.isolation"; | |
| 55 const char kJs[] = "js"; | |
| 56 const char kKey[] = "key"; | |
| 57 const char kKeycode[] = "keyCode"; | |
| 58 const char kKioskEnabled[] = "kiosk_enabled"; | |
| 59 const char kLanguage[] = "language"; | |
| 60 const char kLaunch[] = "app.launch"; | |
| 61 const char kLaunchContainer[] = "app.launch.container"; | |
| 62 const char kLaunchHeight[] = "app.launch.height"; | |
| 63 const char kLaunchLocalPath[] = "app.launch.local_path"; | |
| 64 const char kLaunchWebURL[] = "app.launch.web_url"; | |
| 65 const char kLaunchWidth[] = "app.launch.width"; | |
| 66 const char kLayouts[] = "layouts"; | |
| 67 const char kManifestVersion[] = "manifest_version"; | |
| 68 const char kMatches[] = "matches"; | |
| 69 const char kMinimumChromeVersion[] = "minimum_chrome_version"; | |
| 70 const char kMinimumVersion[] = "minimum_version"; | |
| 71 const char kMIMETypes[] = "mime_types"; | |
| 72 const char kMimeTypesHandler[] = "mime_types_handler"; | |
| 73 const char kName[] = "name"; | |
| 74 const char kNaClModules[] = "nacl_modules"; | |
| 75 const char kNaClModulesMIMEType[] = "mime_type"; | |
| 76 const char kNaClModulesPath[] = "path"; | |
| 77 const char kOAuth2[] = "oauth2"; | |
| 78 const char kOAuth2AutoApprove[] = "oauth2.auto_approve"; | |
| 79 const char kOAuth2ClientId[] = "oauth2.client_id"; | |
| 80 const char kOAuth2Scopes[] = "oauth2.scopes"; | |
| 81 const char kOfflineEnabled[] = "offline_enabled"; | |
| 82 const char kOmnibox[] = "omnibox"; | |
| 83 const char kOmniboxKeyword[] = "omnibox.keyword"; | |
| 84 const char kOptionalPermissions[] = "optional_permissions"; | |
| 85 const char kOptionsPage[] = "options_page"; | |
| 86 const char kPageAction[] = "page_action"; | |
| 87 const char kPageActionDefaultIcon[] = "default_icon"; | |
| 88 const char kPageActionDefaultPopup[] = "default_popup"; | |
| 89 const char kPageActionDefaultTitle[] = "default_title"; | |
| 90 const char kPageActionIcons[] = "icons"; | |
| 91 const char kPageActionId[] = "id"; | |
| 92 const char kPageActionPopup[] = "popup"; | |
| 93 const char kPageActionPopupPath[] = "path"; | |
| 94 const char kPageActions[] = "page_actions"; | |
| 95 const char kPermissions[] = "permissions"; | |
| 96 const char kPlatformAppBackground[] = "app.background"; | |
| 97 const char kPlatformAppBackgroundPage[] = "app.background.page"; | |
| 98 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; | |
| 99 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy"; | |
| 100 const char kPlugins[] = "plugins"; | |
| 101 const char kPluginsPath[] = "path"; | |
| 102 const char kPluginsPublic[] = "public"; | |
| 103 const char kPublicKey[] = "key"; | |
| 104 const char kResources[] = "resources"; | |
| 105 const char kRequirements[] = "requirements"; | |
| 106 const char kRunAt[] = "run_at"; | |
| 107 const char kSandboxedPages[] = "sandbox.pages"; | |
| 108 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; | |
| 109 const char kScriptBadge[] = "script_badge"; | |
| 110 const char kShiftKey[] = "shiftKey"; | |
| 111 const char kShortcutKey[] = "shortcutKey"; | |
| 112 const char kSignature[] = "signature"; | |
| 113 const char kSpellcheck[] = "spellcheck"; | |
| 114 const char kSpellcheckDictionaryFormat[] = "dictionary_format"; | |
| 115 const char kSpellcheckDictionaryLanguage[] = "dictionary_language"; | |
| 116 const char kSpellcheckDictionaryLocale[] = "dictionary_locale"; | |
| 117 const char kSpellcheckDictionaryPath[] = "dictionary_path"; | |
| 118 const char kStorageManagedSchema[] = "storage.managed_schema"; | |
| 119 const char kSuggestedKey[] = "suggested_key"; | |
| 120 const char kSystemIndicator[] = "system_indicator"; | |
| 121 const char kSystemInfoDisplay[] = "systemInfo.display"; | |
| 122 const char kTheme[] = "theme"; | |
| 123 const char kThemeColors[] = "colors"; | |
| 124 const char kThemeDisplayProperties[] = "properties"; | |
| 125 const char kThemeImages[] = "images"; | |
| 126 const char kThemeTints[] = "tints"; | |
| 127 const char kTtsEngine[] = "tts_engine"; | |
| 128 const char kTtsGenderFemale[] = "female"; | |
| 129 const char kTtsGenderMale[] = "male"; | |
| 130 const char kTtsVoices[] = "voices"; | |
| 131 const char kTtsVoicesEventTypeEnd[] = "end"; | |
| 132 const char kTtsVoicesEventTypeError[] = "error"; | |
| 133 const char kTtsVoicesEventTypeMarker[] = "marker"; | |
| 134 const char kTtsVoicesEventTypeSentence[] = "sentence"; | |
| 135 const char kTtsVoicesEventTypeStart[] = "start"; | |
| 136 const char kTtsVoicesEventTypeWord[] = "word"; | |
| 137 const char kTtsVoicesEventTypes[] = "event_types"; | |
| 138 const char kTtsVoicesGender[] = "gender"; | |
| 139 const char kTtsVoicesLang[] = "lang"; | |
| 140 const char kTtsVoicesVoiceName[] = "voice_name"; | |
| 141 const char kType[] = "type"; | |
| 142 const char kUpdateURL[] = "update_url"; | |
| 143 const char kVersion[] = "version"; | |
| 144 const char kWebAccessibleResources[] = "web_accessible_resources"; | |
| 145 const char kWebURLs[] = "app.urls"; | |
| 146 } // namespace extension_manifest_keys | |
| 147 | |
| 148 namespace extension_manifest_values { | 7 namespace extension_manifest_values { |
| 149 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; | 8 const char kBrowserActionCommandEvent[] = "_execute_browser_action"; |
| 150 const char kIncognitoSplit[] = "split"; | 9 const char kIncognitoSplit[] = "split"; |
| 151 const char kIncognitoSpanning[] = "spanning"; | 10 const char kIncognitoSpanning[] = "spanning"; |
| 152 const char kIntentDispositionWindow[] = "window"; | 11 const char kIntentDispositionWindow[] = "window"; |
| 153 const char kIntentDispositionInline[] = "inline"; | 12 const char kIntentDispositionInline[] = "inline"; |
| 154 const char kIsolatedStorage[] = "storage"; | 13 const char kIsolatedStorage[] = "storage"; |
| 155 const char kKeybindingPlatformChromeOs[] = "chromeos"; | 14 const char kKeybindingPlatformChromeOs[] = "chromeos"; |
| 156 const char kKeybindingPlatformDefault[] = "default"; | 15 const char kKeybindingPlatformDefault[] = "default"; |
| 157 const char kKeybindingPlatformLinux[] = "linux"; | 16 const char kKeybindingPlatformLinux[] = "linux"; |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 "Invalid value for '*'."; | 267 "Invalid value for '*'."; |
| 409 const char kInvalidLaunchValueContainer[] = | 268 const char kInvalidLaunchValueContainer[] = |
| 410 "Invalid container type for '*'."; | 269 "Invalid container type for '*'."; |
| 411 const char kInvalidManifest[] = | 270 const char kInvalidManifest[] = |
| 412 "Manifest file is invalid."; | 271 "Manifest file is invalid."; |
| 413 const char kInvalidManifestVersion[] = | 272 const char kInvalidManifestVersion[] = |
| 414 "Invalid value for 'manifest_version'. Must be an integer greater than " | 273 "Invalid value for 'manifest_version'. Must be an integer greater than " |
| 415 "zero."; | 274 "zero."; |
| 416 const char kInvalidManifestVersionOld[] = | 275 const char kInvalidManifestVersionOld[] = |
| 417 "The 'manifest_version' key must be present and set to * (without quotes). " | 276 "The 'manifest_version' key must be present and set to * (without quotes). " |
| 418 "See developer.chrome.com/extensions/manifestVersion.html for details."; | 277 "See developer.chrome.com/*/manifestVersion.html for details."; |
| 419 const char kInvalidMatch[] = | 278 const char kInvalidMatch[] = |
| 420 "Invalid value for 'content_scripts[*].matches[*]': *"; | 279 "Invalid value for 'content_scripts[*].matches[*]': *"; |
| 421 const char kInvalidMatchCount[] = | 280 const char kInvalidMatchCount[] = |
| 422 "Invalid value for 'content_scripts[*].matches'. There must be at least " | 281 "Invalid value for 'content_scripts[*].matches'. There must be at least " |
| 423 "one match specified."; | 282 "one match specified."; |
| 424 const char kInvalidMatches[] = | 283 const char kInvalidMatches[] = |
| 425 "Required value 'content_scripts[*].matches' is missing or invalid."; | 284 "Required value 'content_scripts[*].matches' is missing or invalid."; |
| 426 const char kInvalidMIMETypes[] = | 285 const char kInvalidMIMETypes[] = |
| 427 "Invalid value for 'mime_types'"; | 286 "Invalid value for 'mime_types'"; |
| 428 const char kInvalidMimeTypesHandler[] = | 287 const char kInvalidMimeTypesHandler[] = |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 const char kNoWildCardsInPaths[] = | 455 const char kNoWildCardsInPaths[] = |
| 597 "Wildcards are not allowed in extent URL pattern paths."; | 456 "Wildcards are not allowed in extent URL pattern paths."; |
| 598 const char kOneUISurfaceOnly[] = | 457 const char kOneUISurfaceOnly[] = |
| 599 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; | 458 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; |
| 600 const char kPermissionMustBeOptional[] = | 459 const char kPermissionMustBeOptional[] = |
| 601 "Permission '*' must be specified in the optional section of the manifest."; | 460 "Permission '*' must be specified in the optional section of the manifest."; |
| 602 const char kPermissionNotAllowed[] = | 461 const char kPermissionNotAllowed[] = |
| 603 "Access to permission '*' denied."; | 462 "Access to permission '*' denied."; |
| 604 const char kPermissionNotAllowedInManifest[] = | 463 const char kPermissionNotAllowedInManifest[] = |
| 605 "Permission '*' cannot be specified in the manifest."; | 464 "Permission '*' cannot be specified in the manifest."; |
| 606 const char kPlatformAppNeedsManifestVersion2[] = | |
| 607 "Packaged apps need manifest_version set to >= 2"; | |
| 608 const char kReservedMessageFound[] = | 465 const char kReservedMessageFound[] = |
| 609 "Reserved key * found in message catalog."; | 466 "Reserved key * found in message catalog."; |
| 610 const char kScriptBadgeRequiresFlag[] = | 467 const char kScriptBadgeRequiresFlag[] = |
| 611 "The script_badge manifest key is turned off by default. " | 468 "The script_badge manifest key is turned off by default. " |
| 612 "You can enable it with the --enable-script-badges command-line flag."; | 469 "You can enable it with the --enable-script-badges command-line flag."; |
| 613 const char kScriptBadgeIconIgnored[] = | 470 const char kScriptBadgeIconIgnored[] = |
| 614 "default_icon specified in script_badge manifest section will not be used."; | 471 "default_icon specified in script_badge manifest section will not be used."; |
| 615 const char kScriptBadgeTitleIgnored[] = | 472 const char kScriptBadgeTitleIgnored[] = |
| 616 "default_title specified in script_badge manifest section will not be " | 473 "default_title specified in script_badge manifest section will not be " |
| 617 "used."; | 474 "used."; |
| 618 const char kWebRequestConflictsWithLazyBackground[] = | 475 const char kWebRequestConflictsWithLazyBackground[] = |
| 619 "The 'webRequest' API cannot be used with event pages."; | 476 "The 'webRequest' API cannot be used with event pages."; |
| 620 #if defined(OS_CHROMEOS) | 477 #if defined(OS_CHROMEOS) |
| 621 const char kIllegalPlugins[] = | 478 const char kIllegalPlugins[] = |
| 622 "Extensions cannot install plugins on Chrome OS"; | 479 "Extensions cannot install plugins on Chrome OS"; |
| 623 #endif | 480 #endif |
| 624 } // namespace extension_manifest_errors | 481 } // namespace extension_manifest_errors |
| OLD | NEW |