Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / extensions / common / manifest_constants.h
blob607e34cce98e36f482ebe58fbaf9df86324ed9aa
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_
8 namespace extensions {
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 kContentScripts[];
32 extern const char kContentSecurityPolicy[];
33 extern const char kConvertedFromUserScript[];
34 extern const char kCopresence[];
35 extern const char kCss[];
36 extern const char kCtrlKey[];
37 extern const char kCurrentLocale[];
38 extern const char kDefaultLocale[];
39 extern const char kDescription[];
40 extern const char kDevToolsPage[];
41 extern const char kDisplayInLauncher[];
42 extern const char kDisplayInNewTabPage[];
43 extern const char kEventName[];
44 extern const char kExcludeGlobs[];
45 extern const char kExcludeMatches[];
46 extern const char kExport[];
47 extern const char kExternallyConnectable[];
48 extern const char kEventRules[];
49 extern const char kFileAccessList[];
50 extern const char kFileHandlers[];
51 extern const char kFileHandlerExtensions[];
52 extern const char kFileHandlerTypes[];
53 extern const char kFileFilters[];
54 extern const char kFileBrowserHandlers[];
55 extern const char kGlobal[];
56 extern const char kHideBookmarkButton[];
57 extern const char kHomepageURL[];
58 extern const char kIcons[];
59 extern const char kId[];
60 extern const char kImeOptionsPage[];
61 extern const char kImport[];
62 extern const char kIncognito[];
63 extern const char kIncludeGlobs[];
64 extern const char kIndicator[];
65 extern const char kInputComponents[];
66 extern const char kInputView[];
67 extern const char kIsolation[];
68 extern const char kJs[];
69 extern const char kKey[];
70 extern const char kKeycode[];
71 extern const char kKioskEnabled[];
72 extern const char kKioskOnly[];
73 extern const char kKioskMode[];
74 extern const char kLanguage[];
75 extern const char kLaunch[];
76 extern const char kLaunchContainer[];
77 extern const char kLauncherPage[];
78 extern const char kLauncherPagePage[];
79 extern const char kLaunchHeight[];
80 extern const char kLaunchLocalPath[];
81 extern const char kLaunchWebURL[];
82 extern const char kLaunchWidth[];
83 extern const char kLayouts[];
84 extern const char kLinkedAppIcons[];
85 extern const char kLinkedAppIconURL[];
86 extern const char kLinkedAppIconSize[];
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 kNaClArch[];
95 extern const char kNaClModules[];
96 extern const char kNaClModulesMIMEType[];
97 extern const char kNaClModulesPath[];
98 extern const char kName[];
99 extern const char kOAuth2[];
100 extern const char kOAuth2AutoApprove[];
101 extern const char kOAuth2ClientId[];
102 extern const char kOAuth2Scopes[];
103 extern const char kOfflineEnabled[];
104 extern const char kOmnibox[];
105 extern const char kOmniboxKeyword[];
106 extern const char kOptionalPermissions[];
107 extern const char kOptionsPage[];
108 extern const char kOptionsUI[];
109 extern const char kOverrideHomepage[];
110 extern const char kOverrideSearchProvider[];
111 extern const char kOverrideStartupPage[];
112 extern const char kPageAction[];
113 extern const char kPageActionDefaultIcon[];
114 extern const char kPageActionDefaultPopup[];
115 extern const char kPageActionDefaultTitle[];
116 extern const char kPageActionIcons[];
117 extern const char kPageActionId[];
118 extern const char kPageActionPopup[];
119 extern const char kPageActionPopupPath[];
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 kPlatforms[];
126 extern const char kPlugins[];
127 extern const char kPluginsPath[];
128 extern const char kPluginsPublic[];
129 extern const char kPublicKey[];
130 extern const char kRemoveButton[];
131 extern const char kRequirements[];
132 extern const char kRunAt[];
133 extern const char kSandboxedPages[];
134 extern const char kSandboxedPagesCSP[];
135 extern const char kSettingsOverride[];
136 extern const char kSettingsOverrideAlternateUrls[];
137 extern const char kShiftKey[];
138 extern const char kShortcutKey[];
139 extern const char kShortName[];
140 extern const char kSignature[];
141 extern const char kSockets[];
142 extern const char kSpellcheck[];
143 extern const char kSpellcheckDictionaryFormat[];
144 extern const char kSpellcheckDictionaryLanguage[];
145 extern const char kSpellcheckDictionaryLocale[];
146 extern const char kSpellcheckDictionaryPath[];
147 extern const char kStorageManagedSchema[];
148 extern const char kSubPackagePath[];
149 extern const char kSuggestedKey[];
150 extern const char kSynthesizeExtensionAction[];
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 kUsbPrinters[];
178 extern const char kVersion[];
179 extern const char kVersionName[];
180 extern const char kWebAccessibleResources[];
181 extern const char kWebURLs[];
182 extern const char kWebview[];
183 extern const char kWebviewName[];
184 extern const char kWebviewAccessibleResources[];
185 extern const char kWebviewPartitions[];
186 extern const char kWhitelist[];
187 #if defined(OS_CHROMEOS)
188 extern const char kFileSystemProviderCapabilities[];
189 #endif
190 } // namespace manifest_keys
192 // Some values expected in manifests.
193 namespace manifest_values {
195 extern const char kApiKey[];
196 extern const char kBrowserActionCommandEvent[];
197 extern const char kIncognitoSplit[];
198 extern const char kIncognitoSpanning[];
199 extern const char kIsolatedStorage[];
200 extern const char kKeybindingPlatformChromeOs[];
201 extern const char kKeybindingPlatformDefault[];
202 extern const char kKeybindingPlatformLinux[];
203 extern const char kKeybindingPlatformMac[];
204 extern const char kKeybindingPlatformWin[];
205 extern const char kKeyAlt[];
206 extern const char kKeyShift[];
207 extern const char kKeyCommand[];
208 extern const char kKeyCtrl[];
209 extern const char kKeyComma[];
210 extern const char kKeyDel[];
211 extern const char kKeyDown[];
212 extern const char kKeyHome[];
213 extern const char kKeyEnd[];
214 extern const char kKeyIns[];
215 extern const char kKeyLeft[];
216 extern const char kKeyMacCtrl[];
217 extern const char kKeyMediaNextTrack[];
218 extern const char kKeyMediaPlayPause[];
219 extern const char kKeyMediaPrevTrack[];
220 extern const char kKeyMediaStop[];
221 extern const char kKeyPgDwn[];
222 extern const char kKeyPgUp[];
223 extern const char kKeyPeriod[];
224 extern const char kKeyRight[];
225 extern const char kKeySearch[];
226 extern const char kKeySeparator[];
227 extern const char kKeySpace[];
228 extern const char kKeyTab[];
229 extern const char kKeyUp[];
230 extern const char kLaunchContainerPanel[];
231 extern const char kLaunchContainerTab[];
232 extern const char kLaunchContainerWindow[];
233 extern const char kPageActionCommandEvent[];
234 extern const char kPageActionTypePermanent[];
235 extern const char kPageActionTypeTab[];
236 extern const char kRunAtDocumentEnd[];
237 extern const char kRunAtDocumentIdle[];
238 extern const char kRunAtDocumentStart[];
240 } // namespace manifest_values
242 // Error messages returned from extension installation.
243 namespace manifest_errors {
245 extern const char kActiveTabPermissionNotGranted[];
246 extern const char kAllURLOrActiveTabNeeded[];
247 extern const char kAppsNotEnabled[];
248 extern const char kBackgroundPermissionNeeded[];
249 extern const char kBackgroundRequiredForPlatformApps[];
250 extern const char kCannotAccessAboutUrl[];
251 extern const char kCannotAccessChromeUrl[];
252 extern const char kCannotAccessExtensionUrl[];
253 extern const char kCannotAccessPage[];
254 extern const char kCannotChangeExtensionID[];
255 extern const char kCannotClaimAllHostsInExtent[];
256 extern const char kCannotClaimAllURLsInExtent[];
257 extern const char kCannotScriptGallery[];
258 extern const char kCannotScriptSigninPage[];
259 extern const char kCannotUninstallManagedExtension[];
260 extern const char kChromeVersionTooLow[];
261 extern const char kDevToolsExperimental[];
262 extern const char kDisabledByPolicy[];
263 extern const char kExpectString[];
264 extern const char kInvalidAboutPage[];
265 extern const char kInvalidAboutPageExpectRelativePath[];
266 extern const char kInvalidAllFrames[];
267 extern const char kInvalidAppIconColor[];
268 extern const char kInvalidBackground[];
269 extern const char kInvalidBackgroundAllowJsAccess[];
270 extern const char kInvalidBackgroundCombination[];
271 extern const char kInvalidBackgroundScript[];
272 extern const char kInvalidBackgroundScripts[];
273 extern const char kInvalidBackgroundInHostedApp[];
274 extern const char kInvalidBackgroundPersistent[];
275 extern const char kInvalidBackgroundPersistentNoPage[];
276 extern const char kInvalidBrowserAction[];
277 extern const char kInvalidBrowseURL[];
278 extern const char kInvalidBrowseURLs[];
279 extern const char kInvalidChromeURLOverrides[];
280 extern const char kInvalidCommandsKey[];
281 extern const char kInvalidContentCapabilities[];
282 extern const char kInvalidContentCapabilitiesMatch[];
283 extern const char kInvalidContentCapabilitiesMatchOrigin[];
284 extern const char kInvalidContentCapabilitiesPermission[];
285 extern const char kInvalidContentScript[];
286 extern const char kInvalidContentScriptsList[];
287 extern const char kInvalidContentSecurityPolicy[];
288 extern const char kInvalidCopresenceConfig[];
289 extern const char kInvalidCopresenceApiKey[];
290 extern const char kInvalidCSPInsecureValue[];
291 extern const char kInvalidCSPMissingSecureSrc[];
292 extern const char kInvalidCss[];
293 extern const char kInvalidCssList[];
294 extern const char kInvalidDefaultLocale[];
295 extern const char kInvalidDescription[];
296 extern const char kInvalidDevToolsPage[];
297 extern const char kInvalidDisplayInLauncher[];
298 extern const char kInvalidDisplayInNewTabPage[];
299 extern const char kInvalidEmptyDictionary[];
300 extern const char kInvalidExcludeMatch[];
301 extern const char kInvalidExcludeMatches[];
302 extern const char kInvalidExport[];
303 extern const char kInvalidExportPermissions[];
304 extern const char kInvalidExportWhitelist[];
305 extern const char kInvalidExportWhitelistString[];
306 extern const char kInvalidFileAccessList[];
307 extern const char kInvalidFileAccessValue[];
308 extern const char kInvalidFileBrowserHandler[];
309 extern const char kInvalidFileBrowserHandlerMissingPermission[];
310 extern const char kInvalidFileFiltersList[];
311 extern const char kInvalidFileFilterValue[];
312 extern const char kInvalidFileHandlers[];
313 extern const char kInvalidFileHandlersTooManyTypesAndExtensions[];
314 extern const char kInvalidFileHandlerExtension[];
315 extern const char kInvalidFileHandlerExtensionElement[];
316 extern const char kInvalidFileHandlerNoTypeOrExtension[];
317 extern const char kInvalidFileHandlerType[];
318 extern const char kInvalidFileHandlerTypeElement[];
319 extern const char kInvalidGlob[];
320 extern const char kInvalidGlobList[];
321 extern const char kInvalidHomepageOverrideURL[];
322 extern const char kInvalidHomepageURL[];
323 extern const char kInvalidIconPath[];
324 extern const char kInvalidIcons[];
325 extern const char kInvalidImport[];
326 extern const char kInvalidImportAndExport[];
327 extern const char kInvalidImportId[];
328 extern const char kInvalidImportVersion[];
329 extern const char kInvalidIncognitoBehavior[];
330 extern const char kInvalidInputComponents[];
331 extern const char kInvalidInputComponentDescription[];
332 extern const char kInvalidInputComponentLayoutName[];
333 extern const char kInvalidInputComponentName[];
334 extern const char kInvalidInputComponentShortcutKey[];
335 extern const char kInvalidInputComponentShortcutKeycode[];
336 extern const char kInvalidInputComponentType[];
337 extern const char kInvalidInputView[];
338 extern const char kInvalidIsolation[];
339 extern const char kInvalidIsolationValue[];
340 extern const char kInvalidJs[];
341 extern const char kInvalidJsList[];
342 extern const char kInvalidKey[];
343 extern const char kInvalidKeyBinding[];
344 extern const char kInvalidKeyBindingDescription[];
345 extern const char kInvalidKeyBindingDictionary[];
346 extern const char kInvalidKeyBindingMediaKeyWithModifier[];
347 extern const char kInvalidKeyBindingMissingPlatform[];
348 extern const char kInvalidKeyBindingTooMany[];
349 extern const char kInvalidKeyBindingUnknownPlatform[];
350 extern const char kInvalidKioskEnabled[];
351 extern const char kInvalidKioskOnly[];
352 extern const char kInvalidKioskOnlyButNotEnabled[];
353 extern const char kInvalidLauncherPage[];
354 extern const char kInvalidLauncherPagePage[];
355 extern const char kInvalidLaunchContainer[];
356 extern const char kInvalidLaunchValue[];
357 extern const char kInvalidLaunchValueContainer[];
358 extern const char kInvalidLinkedAppIcon[];
359 extern const char kInvalidLinkedAppIconSize[];
360 extern const char kInvalidLinkedAppIconURL[];
361 extern const char kInvalidLinkedAppIcons[];
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 kInvalidPermissionWithDetail[];
396 extern const char kInvalidPermission[];
397 extern const char kInvalidPermissions[];
398 extern const char kInvalidPermissionScheme[];
399 extern const char kInvalidPlugins[];
400 extern const char kInvalidPluginsPath[];
401 extern const char kInvalidPluginsPublic[];
402 extern const char kInvalidRequirement[];
403 extern const char kInvalidRequirements[];
404 extern const char kInvalidRunAt[];
405 extern const char kInvalidSandboxedPagesList[];
406 extern const char kInvalidSandboxedPage[];
407 extern const char kInvalidSandboxedPagesCSP[];
408 extern const char kInvalidSearchEngineMissingKeys[];
409 extern const char kInvalidSearchEngineURL[];
410 extern const char kInvalidShortName[];
411 extern const char kInvalidSignature[];
412 extern const char kInvalidSpellcheck[];
413 extern const char kInvalidSpellcheckDictionaryFormat[];
414 extern const char kInvalidSpellcheckDictionaryLanguage[];
415 extern const char kInvalidSpellcheckDictionaryLocale[];
416 extern const char kInvalidSpellcheckDictionaryPath[];
417 extern const char kInvalidStartupOverrideURL[];
418 extern const char kInvalidSystemIndicator[];
419 extern const char kInvalidTheme[];
420 extern const char kInvalidThemeColors[];
421 extern const char kInvalidThemeImages[];
422 extern const char kInvalidThemeImagesMissing[];
423 extern const char kInvalidThemeTints[];
424 extern const char kInvalidTts[];
425 extern const char kInvalidTtsVoices[];
426 extern const char kInvalidTtsVoicesEventTypes[];
427 extern const char kInvalidTtsVoicesGender[];
428 extern const char kInvalidTtsVoicesLang[];
429 extern const char kInvalidTtsVoicesRemote[];
430 extern const char kInvalidTtsVoicesVoiceName[];
431 extern const char kInvalidUpdateURL[];
432 extern const char kInvalidURLPatternError[];
433 extern const char kInvalidURLHandlers[];
434 extern const char kInvalidURLHandlerPatternElement[];
435 extern const char kInvalidURLHandlerTitle[];
436 extern const char kInvalidURLHandlerPattern[];
437 extern const char kInvalidVersion[];
438 extern const char kInvalidVersionName[];
439 extern const char kInvalidWebAccessibleResourcesList[];
440 extern const char kInvalidWebAccessibleResource[];
441 extern const char kInvalidWebview[];
442 extern const char kInvalidWebviewAccessibleResourcesList[];
443 extern const char kInvalidWebviewAccessibleResource[];
444 extern const char kInvalidWebviewPartition[];
445 extern const char kInvalidWebviewPartitionName[];
446 extern const char kInvalidWebviewPartitionsList[];
447 extern const char kInvalidWebURL[];
448 extern const char kInvalidWebURLs[];
449 extern const char kInvalidZipHash[];
450 extern const char kInsecureContentSecurityPolicy[];
451 extern const char kKeyIsDeprecatedWithReplacement[];
452 extern const char kLauncherPagePageRequired[];
453 extern const char kLaunchPathAndExtentAreExclusive[];
454 extern const char kLaunchPathAndURLAreExclusive[];
455 extern const char kLaunchURLRequired[];
456 extern const char kLocalesInvalidLocale[];
457 extern const char kLocalesMessagesFileMissing[];
458 extern const char kLocalesNoDefaultLocaleSpecified[];
459 extern const char kLocalesNoDefaultMessages[];
460 extern const char kLocalesNoValidLocaleNamesListed[];
461 extern const char kLocalesTreeMissing[];
462 extern const char kManifestParseError[];
463 extern const char kManifestUnreadable[];
464 extern const char kMissingFile[];
465 extern const char kMultipleOverrides[];
466 extern const char kNoPermissionForMIMETypes[];
467 extern const char kNoWildCardsInPaths[];
468 extern const char kOneUISurfaceOnly[];
469 extern const char kPermissionMustBeOptional[];
470 extern const char kPermissionNotAllowed[];
471 extern const char kPermissionNotAllowedInManifest[];
472 extern const char kPermissionUnknownOrMalformed[];
473 extern const char kReservedMessageFound[];
474 extern const char kUnrecognizedManifestKey[];
475 extern const char kUnrecognizedManifestProperty[];
476 extern const char kWebRequestConflictsWithLazyBackground[];
477 #if defined(OS_CHROMEOS)
478 extern const char kIllegalPlugins[];
479 extern const char kInvalidFileSystemProviderMissingCapabilities[];
480 extern const char kInvalidFileSystemProviderMissingPermission[];
481 #endif
483 } // namespace manifest_errors
485 } // namespace extensions
487 #endif // EXTENSIONS_COMMON_MANIFEST_CONSTANTS_H_