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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_COMMON_MANIFEST_CONSTANTS_H_
6 #define EXTENSIONS_COMMON_MANIFEST_CONSTANTS_H_
10 // Keys used in JSON representation of extensions.
11 namespace manifest_keys
{
13 extern const char kAboutPage
[];
14 extern const char kAllFrames
[];
15 extern const char kAltKey
[];
16 extern const char kApp
[];
17 extern const char kAppIconColor
[];
18 extern const char kAutomation
[];
19 extern const char kBackgroundAllowJsAccess
[];
20 extern const char kBackgroundPage
[];
21 extern const char kBackgroundPageLegacy
[];
22 extern const char kBackgroundPersistent
[];
23 extern const char kBackgroundScripts
[];
24 extern const char kBluetooth
[];
25 extern const char kBookmarkUI
[];
26 extern const char kBrowserAction
[];
27 extern const char kBrowseURLs
[];
28 extern const char kChromeURLOverrides
[];
29 extern const char kCommands
[];
30 extern const char kContentCapabilities
[];
31 extern const char kContentPack
[];
32 extern const char kContentPackSites
[];
33 extern const char kContentScripts
[];
34 extern const char kContentSecurityPolicy
[];
35 extern const char kConvertedFromUserScript
[];
36 extern const char kCopresence
[];
37 extern const char kCss
[];
38 extern const char kCtrlKey
[];
39 extern const char kCurrentLocale
[];
40 extern const char kDefaultLocale
[];
41 extern const char kDescription
[];
42 extern const char kDevToolsPage
[];
43 extern const char kDisplayInLauncher
[];
44 extern const char kDisplayInNewTabPage
[];
45 extern const char kEventName
[];
46 extern const char kExcludeGlobs
[];
47 extern const char kExcludeMatches
[];
48 extern const char kExport
[];
49 extern const char kExternallyConnectable
[];
50 extern const char kFileAccessList
[];
51 extern const char kFileHandlers
[];
52 extern const char kFileHandlerExtensions
[];
53 extern const char kFileHandlerTypes
[];
54 extern const char kFileFilters
[];
55 extern const char kFileBrowserHandlers
[];
56 extern const char kGlobal
[];
57 extern const char kHideBookmarkButton
[];
58 extern const char kHomepageURL
[];
59 extern const char kIcons
[];
60 extern const char kId
[];
61 extern const char kImeOptionsPage
[];
62 extern const char kImport
[];
63 extern const char kIncognito
[];
64 extern const char kIncludeGlobs
[];
65 extern const char kIndicator
[];
66 extern const char kInputComponents
[];
67 extern const char kInputView
[];
68 extern const char kIsolation
[];
69 extern const char kJs
[];
70 extern const char kKey
[];
71 extern const char kKeycode
[];
72 extern const char kKioskEnabled
[];
73 extern const char kKioskOnly
[];
74 extern const char kKioskMode
[];
75 extern const char kLanguage
[];
76 extern const char kLaunch
[];
77 extern const char kLaunchContainer
[];
78 extern const char kLauncherPage
[];
79 extern const char kLauncherPagePage
[];
80 extern const char kLaunchHeight
[];
81 extern const char kLaunchLocalPath
[];
82 extern const char kLaunchWebURL
[];
83 extern const char kLaunchWidth
[];
84 extern const char kLayouts
[];
85 extern const char kManifestVersion
[];
86 extern const char kMatchAboutBlank
[];
87 extern const char kMatches
[];
88 extern const char kMIMETypes
[];
89 extern const char kMimeTypesHandler
[];
90 extern const char kMinimumChromeVersion
[];
91 extern const char kMinimumVersion
[];
92 extern const char kNaClArch
[];
93 extern const char kNaClModules
[];
94 extern const char kNaClModulesMIMEType
[];
95 extern const char kNaClModulesPath
[];
96 extern const char kName
[];
97 extern const char kOAuth2
[];
98 extern const char kOAuth2AutoApprove
[];
99 extern const char kOAuth2ClientId
[];
100 extern const char kOAuth2Scopes
[];
101 extern const char kOfflineEnabled
[];
102 extern const char kOmnibox
[];
103 extern const char kOmniboxKeyword
[];
104 extern const char kOptionalPermissions
[];
105 extern const char kOptionsPage
[];
106 extern const char kOptionsUI
[];
107 extern const char kOverrideHomepage
[];
108 extern const char kOverrideSearchProvider
[];
109 extern const char kOverrideStartupPage
[];
110 extern const char kPageAction
[];
111 extern const char kPageActionDefaultIcon
[];
112 extern const char kPageActionDefaultPopup
[];
113 extern const char kPageActionDefaultTitle
[];
114 extern const char kPageActionIcons
[];
115 extern const char kPageActionId
[];
116 extern const char kPageActionPopup
[];
117 extern const char kPageActionPopupPath
[];
118 extern const char kPermissions
[];
119 extern const char kPlatformAppBackground
[];
120 extern const char kPlatformAppBackgroundPage
[];
121 extern const char kPlatformAppBackgroundScripts
[];
122 extern const char kPlatformAppContentSecurityPolicy
[];
123 extern const char kPlatforms
[];
124 extern const char kPlugins
[];
125 extern const char kPluginsPath
[];
126 extern const char kPluginsPublic
[];
127 extern const char kPublicKey
[];
128 extern const char kRemoveButton
[];
129 extern const char kRequirements
[];
130 extern const char kRunAt
[];
131 extern const char kSandboxedPages
[];
132 extern const char kSandboxedPagesCSP
[];
133 extern const char kSettingsOverride
[];
134 extern const char kSettingsOverrideAlternateUrls
[];
135 extern const char kShiftKey
[];
136 extern const char kShortcutKey
[];
137 extern const char kShortName
[];
138 extern const char kSignature
[];
139 extern const char kSockets
[];
140 extern const char kSpellcheck
[];
141 extern const char kSpellcheckDictionaryFormat
[];
142 extern const char kSpellcheckDictionaryLanguage
[];
143 extern const char kSpellcheckDictionaryLocale
[];
144 extern const char kSpellcheckDictionaryPath
[];
145 extern const char kStorageManagedSchema
[];
146 extern const char kSubPackagePath
[];
147 extern const char kSuggestedKey
[];
148 extern const char kSynthesizeExtensionAction
[];
149 extern const char kSystemIndicator
[];
150 extern const char kTheme
[];
151 extern const char kThemeColors
[];
152 extern const char kThemeDisplayProperties
[];
153 extern const char kThemeImages
[];
154 extern const char kThemeTints
[];
155 extern const char kTtsEngine
[];
156 extern const char kTtsGenderFemale
[];
157 extern const char kTtsGenderMale
[];
158 extern const char kTtsVoices
[];
159 extern const char kTtsVoicesEventTypeEnd
[];
160 extern const char kTtsVoicesEventTypeError
[];
161 extern const char kTtsVoicesEventTypeMarker
[];
162 extern const char kTtsVoicesEventTypeSentence
[];
163 extern const char kTtsVoicesEventTypeStart
[];
164 extern const char kTtsVoicesEventTypeWord
[];
165 extern const char kTtsVoicesEventTypes
[];
166 extern const char kTtsVoicesGender
[];
167 extern const char kTtsVoicesLang
[];
168 extern const char kTtsVoicesRemote
[];
169 extern const char kTtsVoicesVoiceName
[];
170 extern const char kType
[];
171 extern const char kUIOverride
[];
172 extern const char kUpdateURL
[];
173 extern const char kUrlHandlers
[];
174 extern const char kUrlHandlerTitle
[];
175 extern const char kVersion
[];
176 extern const char kVersionName
[];
177 extern const char kWebAccessibleResources
[];
178 extern const char kWebURLs
[];
179 extern const char kWebview
[];
180 extern const char kWebviewName
[];
181 extern const char kWebviewAccessibleResources
[];
182 extern const char kWebviewPartitions
[];
183 extern const char kWhitelist
[];
185 } // namespace manifest_keys
187 // Some values expected in manifests.
188 namespace manifest_values
{
190 extern const char kApiKey
[];
191 extern const char kBrowserActionCommandEvent
[];
192 extern const char kIncognitoSplit
[];
193 extern const char kIncognitoSpanning
[];
194 extern const char kIsolatedStorage
[];
195 extern const char kKeybindingPlatformChromeOs
[];
196 extern const char kKeybindingPlatformDefault
[];
197 extern const char kKeybindingPlatformLinux
[];
198 extern const char kKeybindingPlatformMac
[];
199 extern const char kKeybindingPlatformWin
[];
200 extern const char kKeyAlt
[];
201 extern const char kKeyShift
[];
202 extern const char kKeyCommand
[];
203 extern const char kKeyCtrl
[];
204 extern const char kKeyComma
[];
205 extern const char kKeyDel
[];
206 extern const char kKeyDown
[];
207 extern const char kKeyHome
[];
208 extern const char kKeyEnd
[];
209 extern const char kKeyIns
[];
210 extern const char kKeyLeft
[];
211 extern const char kKeyMacCtrl
[];
212 extern const char kKeyMediaNextTrack
[];
213 extern const char kKeyMediaPlayPause
[];
214 extern const char kKeyMediaPrevTrack
[];
215 extern const char kKeyMediaStop
[];
216 extern const char kKeyPgDwn
[];
217 extern const char kKeyPgUp
[];
218 extern const char kKeyPeriod
[];
219 extern const char kKeyRight
[];
220 extern const char kKeySearch
[];
221 extern const char kKeySeparator
[];
222 extern const char kKeySpace
[];
223 extern const char kKeyTab
[];
224 extern const char kKeyUp
[];
225 extern const char kLaunchContainerPanel
[];
226 extern const char kLaunchContainerTab
[];
227 extern const char kLaunchContainerWindow
[];
228 extern const char kPageActionCommandEvent
[];
229 extern const char kPageActionTypePermanent
[];
230 extern const char kPageActionTypeTab
[];
231 extern const char kRunAtDocumentEnd
[];
232 extern const char kRunAtDocumentIdle
[];
233 extern const char kRunAtDocumentStart
[];
235 } // namespace manifest_values
237 // Error messages returned from extension installation.
238 namespace manifest_errors
{
240 extern const char kActiveTabPermissionNotGranted
[];
241 extern const char kAllURLOrActiveTabNeeded
[];
242 extern const char kAppsNotEnabled
[];
243 extern const char kBackgroundPermissionNeeded
[];
244 extern const char kBackgroundRequiredForPlatformApps
[];
245 extern const char kCannotAccessAboutUrl
[];
246 extern const char kCannotAccessChromeUrl
[];
247 extern const char kCannotAccessExtensionUrl
[];
248 extern const char kCannotAccessPage
[];
249 extern const char kCannotChangeExtensionID
[];
250 extern const char kCannotClaimAllHostsInExtent
[];
251 extern const char kCannotClaimAllURLsInExtent
[];
252 extern const char kCannotScriptGallery
[];
253 extern const char kCannotScriptSigninPage
[];
254 extern const char kCannotUninstallManagedExtension
[];
255 extern const char kChromeVersionTooLow
[];
256 extern const char kDevToolsExperimental
[];
257 extern const char kDisabledByPolicy
[];
258 extern const char kExpectString
[];
259 extern const char kInvalidAboutPage
[];
260 extern const char kInvalidAboutPageExpectRelativePath
[];
261 extern const char kInvalidAllFrames
[];
262 extern const char kInvalidAppIconColor
[];
263 extern const char kInvalidBackground
[];
264 extern const char kInvalidBackgroundAllowJsAccess
[];
265 extern const char kInvalidBackgroundCombination
[];
266 extern const char kInvalidBackgroundScript
[];
267 extern const char kInvalidBackgroundScripts
[];
268 extern const char kInvalidBackgroundInHostedApp
[];
269 extern const char kInvalidBackgroundPersistent
[];
270 extern const char kInvalidBackgroundPersistentNoPage
[];
271 extern const char kInvalidBrowserAction
[];
272 extern const char kInvalidBrowseURL
[];
273 extern const char kInvalidBrowseURLs
[];
274 extern const char kInvalidChromeURLOverrides
[];
275 extern const char kInvalidCommandsKey
[];
276 extern const char kInvalidContentCapabilities
[];
277 extern const char kInvalidContentCapabilitiesMatch
[];
278 extern const char kInvalidContentCapabilitiesMatchOrigin
[];
279 extern const char kInvalidContentCapabilitiesPermission
[];
280 extern const char kInvalidContentPack
[];
281 extern const char kInvalidContentPackSites
[];
282 extern const char kInvalidContentScript
[];
283 extern const char kInvalidContentScriptsList
[];
284 extern const char kInvalidContentSecurityPolicy
[];
285 extern const char kInvalidCopresenceConfig
[];
286 extern const char kInvalidCopresenceApiKey
[];
287 extern const char kInvalidCSPInsecureValue
[];
288 extern const char kInvalidCSPMissingSecureSrc
[];
289 extern const char kInvalidCss
[];
290 extern const char kInvalidCssList
[];
291 extern const char kInvalidDefaultLocale
[];
292 extern const char kInvalidDescription
[];
293 extern const char kInvalidDevToolsPage
[];
294 extern const char kInvalidDisplayInLauncher
[];
295 extern const char kInvalidDisplayInNewTabPage
[];
296 extern const char kInvalidEmptyDictionary
[];
297 extern const char kInvalidExcludeMatch
[];
298 extern const char kInvalidExcludeMatches
[];
299 extern const char kInvalidExport
[];
300 extern const char kInvalidExportPermissions
[];
301 extern const char kInvalidExportWhitelist
[];
302 extern const char kInvalidExportWhitelistString
[];
303 extern const char kInvalidFileAccessList
[];
304 extern const char kInvalidFileAccessValue
[];
305 extern const char kInvalidFileBrowserHandler
[];
306 extern const char kInvalidFileBrowserHandlerMissingPermission
[];
307 extern const char kInvalidFileFiltersList
[];
308 extern const char kInvalidFileFilterValue
[];
309 extern const char kInvalidFileHandlers
[];
310 extern const char kInvalidFileHandlersTooManyTypesAndExtensions
[];
311 extern const char kInvalidFileHandlerExtension
[];
312 extern const char kInvalidFileHandlerExtensionElement
[];
313 extern const char kInvalidFileHandlerNoTypeOrExtension
[];
314 extern const char kInvalidFileHandlerType
[];
315 extern const char kInvalidFileHandlerTypeElement
[];
316 extern const char kInvalidGlob
[];
317 extern const char kInvalidGlobList
[];
318 extern const char kInvalidHomepageOverrideURL
[];
319 extern const char kInvalidHomepageURL
[];
320 extern const char kInvalidIconPath
[];
321 extern const char kInvalidIcons
[];
322 extern const char kInvalidImport
[];
323 extern const char kInvalidImportAndExport
[];
324 extern const char kInvalidImportId
[];
325 extern const char kInvalidImportVersion
[];
326 extern const char kInvalidIncognitoBehavior
[];
327 extern const char kInvalidInputComponents
[];
328 extern const char kInvalidInputComponentDescription
[];
329 extern const char kInvalidInputComponentLayoutName
[];
330 extern const char kInvalidInputComponentName
[];
331 extern const char kInvalidInputComponentShortcutKey
[];
332 extern const char kInvalidInputComponentShortcutKeycode
[];
333 extern const char kInvalidInputComponentType
[];
334 extern const char kInvalidInputView
[];
335 extern const char kInvalidIsolation
[];
336 extern const char kInvalidIsolationValue
[];
337 extern const char kInvalidJs
[];
338 extern const char kInvalidJsList
[];
339 extern const char kInvalidKey
[];
340 extern const char kInvalidKeyBinding
[];
341 extern const char kInvalidKeyBindingDescription
[];
342 extern const char kInvalidKeyBindingDictionary
[];
343 extern const char kInvalidKeyBindingMediaKeyWithModifier
[];
344 extern const char kInvalidKeyBindingMissingPlatform
[];
345 extern const char kInvalidKeyBindingTooMany
[];
346 extern const char kInvalidKeyBindingUnknownPlatform
[];
347 extern const char kInvalidKioskEnabled
[];
348 extern const char kInvalidKioskOnly
[];
349 extern const char kInvalidKioskOnlyButNotEnabled
[];
350 extern const char kInvalidLauncherPage
[];
351 extern const char kInvalidLauncherPagePage
[];
352 extern const char kInvalidLaunchContainer
[];
353 extern const char kInvalidLaunchValue
[];
354 extern const char kInvalidLaunchValueContainer
[];
355 extern const char kInvalidManifest
[];
356 extern const char kInvalidManifestVersion
[];
357 extern const char kInvalidManifestVersionOld
[];
358 extern const char kInvalidMatch
[];
359 extern const char kInvalidMatchAboutBlank
[];
360 extern const char kInvalidMatchCount
[];
361 extern const char kInvalidMatches
[];
362 extern const char kInvalidMIMETypes
[];
363 extern const char kInvalidMimeTypesHandler
[];
364 extern const char kInvalidMinimumChromeVersion
[];
365 extern const char kInvalidNaClModules
[];
366 extern const char kInvalidNaClModulesMIMEType
[];
367 extern const char kInvalidNaClModulesPath
[];
368 extern const char kInvalidName
[];
369 extern const char kInvalidOAuth2AutoApprove
[];
370 extern const char kInvalidOAuth2ClientId
[];
371 extern const char kInvalidOAuth2Scopes
[];
372 extern const char kInvalidOfflineEnabled
[];
373 extern const char kInvalidOmniboxKeyword
[];
374 extern const char kInvalidOptionsUIChromeStyle
[];
375 extern const char kInvalidOptionsUIOpenInTab
[];
376 extern const char kInvalidOptionsPage
[];
377 extern const char kInvalidOptionsPageExpectUrlInPackage
[];
378 extern const char kInvalidOptionsPageInHostedApp
[];
379 extern const char kInvalidPageAction
[];
380 extern const char kInvalidPageActionDefaultTitle
[];
381 extern const char kInvalidPageActionIconPath
[];
382 extern const char kInvalidPageActionId
[];
383 extern const char kInvalidPageActionName
[];
384 extern const char kInvalidPageActionOldAndNewKeys
[];
385 extern const char kInvalidPageActionPopup
[];
386 extern const char kInvalidPageActionPopupHeight
[];
387 extern const char kInvalidPageActionPopupPath
[];
388 extern const char kInvalidPermissionWithDetail
[];
389 extern const char kInvalidPermission
[];
390 extern const char kInvalidPermissions
[];
391 extern const char kInvalidPermissionScheme
[];
392 extern const char kInvalidPlugins
[];
393 extern const char kInvalidPluginsPath
[];
394 extern const char kInvalidPluginsPublic
[];
395 extern const char kInvalidRequirement
[];
396 extern const char kInvalidRequirements
[];
397 extern const char kInvalidRunAt
[];
398 extern const char kInvalidSandboxedPagesList
[];
399 extern const char kInvalidSandboxedPage
[];
400 extern const char kInvalidSandboxedPagesCSP
[];
401 extern const char kInvalidSearchEngineMissingKeys
[];
402 extern const char kInvalidSearchEngineURL
[];
403 extern const char kInvalidShortName
[];
404 extern const char kInvalidSignature
[];
405 extern const char kInvalidSpellcheck
[];
406 extern const char kInvalidSpellcheckDictionaryFormat
[];
407 extern const char kInvalidSpellcheckDictionaryLanguage
[];
408 extern const char kInvalidSpellcheckDictionaryLocale
[];
409 extern const char kInvalidSpellcheckDictionaryPath
[];
410 extern const char kInvalidStartupOverrideURL
[];
411 extern const char kInvalidSystemIndicator
[];
412 extern const char kInvalidTheme
[];
413 extern const char kInvalidThemeColors
[];
414 extern const char kInvalidThemeImages
[];
415 extern const char kInvalidThemeImagesMissing
[];
416 extern const char kInvalidThemeTints
[];
417 extern const char kInvalidTts
[];
418 extern const char kInvalidTtsVoices
[];
419 extern const char kInvalidTtsVoicesEventTypes
[];
420 extern const char kInvalidTtsVoicesGender
[];
421 extern const char kInvalidTtsVoicesLang
[];
422 extern const char kInvalidTtsVoicesRemote
[];
423 extern const char kInvalidTtsVoicesVoiceName
[];
424 extern const char kInvalidUpdateURL
[];
425 extern const char kInvalidURLPatternError
[];
426 extern const char kInvalidURLHandlers
[];
427 extern const char kInvalidURLHandlerPatternElement
[];
428 extern const char kInvalidURLHandlerTitle
[];
429 extern const char kInvalidURLHandlerPattern
[];
430 extern const char kInvalidVersion
[];
431 extern const char kInvalidVersionName
[];
432 extern const char kInvalidWebAccessibleResourcesList
[];
433 extern const char kInvalidWebAccessibleResource
[];
434 extern const char kInvalidWebview
[];
435 extern const char kInvalidWebviewAccessibleResourcesList
[];
436 extern const char kInvalidWebviewAccessibleResource
[];
437 extern const char kInvalidWebviewPartition
[];
438 extern const char kInvalidWebviewPartitionName
[];
439 extern const char kInvalidWebviewPartitionsList
[];
440 extern const char kInvalidWebURL
[];
441 extern const char kInvalidWebURLs
[];
442 extern const char kInvalidZipHash
[];
443 extern const char kInsecureContentSecurityPolicy
[];
444 extern const char kKeyIsDeprecatedWithReplacement
[];
445 extern const char kLauncherPagePageRequired
[];
446 extern const char kLaunchPathAndExtentAreExclusive
[];
447 extern const char kLaunchPathAndURLAreExclusive
[];
448 extern const char kLaunchURLRequired
[];
449 extern const char kLocalesInvalidLocale
[];
450 extern const char kLocalesMessagesFileMissing
[];
451 extern const char kLocalesNoDefaultLocaleSpecified
[];
452 extern const char kLocalesNoDefaultMessages
[];
453 extern const char kLocalesNoValidLocaleNamesListed
[];
454 extern const char kLocalesTreeMissing
[];
455 extern const char kManifestParseError
[];
456 extern const char kManifestUnreadable
[];
457 extern const char kMissingFile
[];
458 extern const char kMultipleOverrides
[];
459 extern const char kNoPermissionForMIMETypes
[];
460 extern const char kNoWildCardsInPaths
[];
461 extern const char kOneUISurfaceOnly
[];
462 extern const char kPermissionMustBeOptional
[];
463 extern const char kPermissionNotAllowed
[];
464 extern const char kPermissionNotAllowedInManifest
[];
465 extern const char kPermissionUnknownOrMalformed
[];
466 extern const char kReservedMessageFound
[];
467 extern const char kUnrecognizedManifestKey
[];
468 extern const char kUnrecognizedManifestProperty
[];
469 extern const char kWebRequestConflictsWithLazyBackground
[];
470 #if defined(OS_CHROMEOS)
471 extern const char kIllegalPlugins
[];
474 } // namespace manifest_errors
476 } // namespace extensions
478 #endif // EXTENSIONS_COMMON_MANIFEST_CONSTANTS_H_