| 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MANIFEST_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MANIFEST_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MANIFEST_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MANIFEST_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 // TODO(yoz): Update includers to include this directly. |
| 12 #include "extensions/common/manifest_constants.h" |
| 11 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 12 | 14 |
| 13 // Keys used in JSON representation of extensions. | |
| 14 namespace extension_manifest_keys { | |
| 15 extern const char kAllFrames[]; | |
| 16 extern const char kAltKey[]; | |
| 17 extern const char kApp[]; | |
| 18 extern const char kBackgroundAllowJsAccess[]; | |
| 19 extern const char kBackgroundPage[]; | |
| 20 extern const char kBackgroundPageLegacy[]; | |
| 21 extern const char kBackgroundPersistent[]; | |
| 22 extern const char kBackgroundScripts[]; | |
| 23 extern const char kBrowserAction[]; | |
| 24 extern const char kBrowseURLs[]; | |
| 25 extern const char kChromeURLOverrides[]; | |
| 26 extern const char kCommands[]; | |
| 27 extern const char kContentPack[]; | |
| 28 extern const char kContentPackSites[]; | |
| 29 extern const char kContentScripts[]; | |
| 30 extern const char kContentSecurityPolicy[]; | |
| 31 extern const char kConvertedFromUserScript[]; | |
| 32 extern const char kCss[]; | |
| 33 extern const char kCtrlKey[]; | |
| 34 extern const char kCurrentLocale[]; | |
| 35 extern const char kDefaultLocale[]; | |
| 36 extern const char kDescription[]; | |
| 37 extern const char kDevToolsPage[]; | |
| 38 extern const char kDisplayInLauncher[]; | |
| 39 extern const char kDisplayInNewTabPage[]; | |
| 40 extern const char kEventName[]; | |
| 41 extern const char kExcludeGlobs[]; | |
| 42 extern const char kExcludeMatches[]; | |
| 43 extern const char kExport[]; | |
| 44 extern const char kExternallyConnectable[]; | |
| 45 extern const char kFileAccessList[]; | |
| 46 extern const char kFileHandlers[]; | |
| 47 extern const char kFileHandlerExtensions[]; | |
| 48 extern const char kFileHandlerTitle[]; | |
| 49 extern const char kFileHandlerTypes[]; | |
| 50 extern const char kFileFilters[]; | |
| 51 extern const char kFileBrowserHandlers[]; | |
| 52 extern const char kMediaGalleriesHandlers[]; | |
| 53 extern const char kHomepageURL[]; | |
| 54 extern const char kIcons[]; | |
| 55 extern const char kId[]; | |
| 56 extern const char kImport[]; | |
| 57 extern const char kIncognito[]; | |
| 58 extern const char kIncludeGlobs[]; | |
| 59 extern const char kInputComponents[]; | |
| 60 extern const char kIntentDisposition[]; | |
| 61 extern const char kIntentHref[]; | |
| 62 extern const char kIntentPath[]; | |
| 63 extern const char kIntents[]; | |
| 64 extern const char kIntentTitle[]; | |
| 65 extern const char kIntentType[]; | |
| 66 extern const char kIsolation[]; | |
| 67 extern const char kJs[]; | |
| 68 extern const char kKey[]; | |
| 69 extern const char kKeycode[]; | |
| 70 extern const char kKioskEnabled[]; | |
| 71 extern const char kLanguage[]; | |
| 72 extern const char kLaunch[]; | |
| 73 extern const char kLaunchContainer[]; | |
| 74 extern const char kLaunchHeight[]; | |
| 75 extern const char kLaunchLocalPath[]; | |
| 76 extern const char kLaunchWebURL[]; | |
| 77 extern const char kLaunchWidth[]; | |
| 78 extern const char kLayouts[]; | |
| 79 extern const char kManifestVersion[]; | |
| 80 extern const char kMatches[]; | |
| 81 extern const char kMIMETypes[]; | |
| 82 extern const char kMimeTypesHandler[]; | |
| 83 extern const char kMinimumChromeVersion[]; | |
| 84 extern const char kMinimumVersion[]; | |
| 85 extern const char kNaClModules[]; | |
| 86 extern const char kNaClModulesMIMEType[]; | |
| 87 extern const char kNaClModulesPath[]; | |
| 88 extern const char kName[]; | |
| 89 extern const char kOAuth2[]; | |
| 90 extern const char kOAuth2AutoApprove[]; | |
| 91 extern const char kOAuth2ClientId[]; | |
| 92 extern const char kOAuth2Scopes[]; | |
| 93 extern const char kOfflineEnabled[]; | |
| 94 extern const char kOmnibox[]; | |
| 95 extern const char kOmniboxKeyword[]; | |
| 96 extern const char kOptionalPermissions[]; | |
| 97 extern const char kOptionsPage[]; | |
| 98 extern const char kPageAction[]; | |
| 99 extern const char kPageActionDefaultIcon[]; | |
| 100 extern const char kPageActionDefaultPopup[]; | |
| 101 extern const char kPageActionDefaultTitle[]; | |
| 102 extern const char kPageActionIcons[]; | |
| 103 extern const char kPageActionId[]; | |
| 104 extern const char kPageActionPopup[]; | |
| 105 extern const char kPageActionPopupPath[]; | |
| 106 extern const char kPageActions[]; | |
| 107 extern const char kPermissions[]; | |
| 108 extern const char kPlatformAppBackground[]; | |
| 109 extern const char kPlatformAppBackgroundPage[]; | |
| 110 extern const char kPlatformAppBackgroundScripts[]; | |
| 111 extern const char kPlatformAppContentSecurityPolicy[]; | |
| 112 extern const char kPlugins[]; | |
| 113 extern const char kPluginsPath[]; | |
| 114 extern const char kPluginsPublic[]; | |
| 115 extern const char kPublicKey[]; | |
| 116 extern const char kResources[]; | |
| 117 extern const char kRequirements[]; | |
| 118 extern const char kRunAt[]; | |
| 119 extern const char kSandboxedPages[]; | |
| 120 extern const char kSandboxedPagesCSP[]; | |
| 121 extern const char kScriptBadge[]; | |
| 122 extern const char kShiftKey[]; | |
| 123 extern const char kShortcutKey[]; | |
| 124 extern const char kSignature[]; | |
| 125 extern const char kSpellcheck[]; | |
| 126 extern const char kSpellcheckDictionaryFormat[]; | |
| 127 extern const char kSpellcheckDictionaryLanguage[]; | |
| 128 extern const char kSpellcheckDictionaryLocale[]; | |
| 129 extern const char kSpellcheckDictionaryPath[]; | |
| 130 extern const char kStorageManagedSchema[]; | |
| 131 extern const char kSuggestedKey[]; | |
| 132 extern const char kSystemIndicator[]; | |
| 133 extern const char kTheme[]; | |
| 134 extern const char kThemeColors[]; | |
| 135 extern const char kThemeDisplayProperties[]; | |
| 136 extern const char kThemeImages[]; | |
| 137 extern const char kThemeTints[]; | |
| 138 extern const char kTtsEngine[]; | |
| 139 extern const char kTtsGenderFemale[]; | |
| 140 extern const char kTtsGenderMale[]; | |
| 141 extern const char kTtsVoices[]; | |
| 142 extern const char kTtsVoicesEventTypeEnd[]; | |
| 143 extern const char kTtsVoicesEventTypeError[]; | |
| 144 extern const char kTtsVoicesEventTypeMarker[]; | |
| 145 extern const char kTtsVoicesEventTypeSentence[]; | |
| 146 extern const char kTtsVoicesEventTypeStart[]; | |
| 147 extern const char kTtsVoicesEventTypeWord[]; | |
| 148 extern const char kTtsVoicesEventTypes[]; | |
| 149 extern const char kTtsVoicesGender[]; | |
| 150 extern const char kTtsVoicesLang[]; | |
| 151 extern const char kTtsVoicesVoiceName[]; | |
| 152 extern const char kType[]; | |
| 153 extern const char kUpdateURL[]; | |
| 154 extern const char kVersion[]; | |
| 155 extern const char kWebAccessibleResources[]; | |
| 156 extern const char kWebURLs[]; | |
| 157 } // namespace extension_manifest_keys | |
| 158 | |
| 159 // Some values expected in manifests. | 15 // Some values expected in manifests. |
| 160 namespace extension_manifest_values { | 16 namespace extension_manifest_values { |
| 161 extern const char kBrowserActionCommandEvent[]; | 17 extern const char kBrowserActionCommandEvent[]; |
| 162 extern const char kIncognitoSplit[]; | 18 extern const char kIncognitoSplit[]; |
| 163 extern const char kIncognitoSpanning[]; | 19 extern const char kIncognitoSpanning[]; |
| 164 extern const char kIntentDispositionWindow[]; | 20 extern const char kIntentDispositionWindow[]; |
| 165 extern const char kIntentDispositionInline[]; | 21 extern const char kIntentDispositionInline[]; |
| 166 extern const char kIsolatedStorage[]; | 22 extern const char kIsolatedStorage[]; |
| 167 extern const char kKeybindingPlatformChromeOs[]; | 23 extern const char kKeybindingPlatformChromeOs[]; |
| 168 extern const char kKeybindingPlatformDefault[]; | 24 extern const char kKeybindingPlatformDefault[]; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 extern const char kLocalesTreeMissing[]; | 248 extern const char kLocalesTreeMissing[]; |
| 393 extern const char kManifestParseError[]; | 249 extern const char kManifestParseError[]; |
| 394 extern const char kManifestUnreadable[]; | 250 extern const char kManifestUnreadable[]; |
| 395 extern const char kMissingFile[]; | 251 extern const char kMissingFile[]; |
| 396 extern const char kMultipleOverrides[]; | 252 extern const char kMultipleOverrides[]; |
| 397 extern const char kNoPermissionForMIMETypes[]; | 253 extern const char kNoPermissionForMIMETypes[]; |
| 398 extern const char kNoWildCardsInPaths[]; | 254 extern const char kNoWildCardsInPaths[]; |
| 399 extern const char kPermissionMustBeOptional[]; | 255 extern const char kPermissionMustBeOptional[]; |
| 400 extern const char kPermissionNotAllowed[]; | 256 extern const char kPermissionNotAllowed[]; |
| 401 extern const char kPermissionNotAllowedInManifest[]; | 257 extern const char kPermissionNotAllowedInManifest[]; |
| 402 extern const char kPlatformAppNeedsManifestVersion2[]; | |
| 403 extern const char kOneUISurfaceOnly[]; | 258 extern const char kOneUISurfaceOnly[]; |
| 404 extern const char kReservedMessageFound[]; | 259 extern const char kReservedMessageFound[]; |
| 405 extern const char kScriptBadgeRequiresFlag[]; | 260 extern const char kScriptBadgeRequiresFlag[]; |
| 406 extern const char kScriptBadgeIconIgnored[]; | 261 extern const char kScriptBadgeIconIgnored[]; |
| 407 extern const char kScriptBadgeTitleIgnored[]; | 262 extern const char kScriptBadgeTitleIgnored[]; |
| 408 extern const char kWebRequestConflictsWithLazyBackground[]; | 263 extern const char kWebRequestConflictsWithLazyBackground[]; |
| 409 #if defined(OS_CHROMEOS) | 264 #if defined(OS_CHROMEOS) |
| 410 extern const char kIllegalPlugins[]; | 265 extern const char kIllegalPlugins[]; |
| 411 #endif | 266 #endif |
| 412 } // namespace extension_manifest_errors | 267 } // namespace extension_manifest_errors |
| 413 | 268 |
| 414 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_MANIFEST_CONSTANTS_H_ | 269 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_MANIFEST_CONSTANTS_H_ |
| OLD | NEW |