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