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