Fix sort order of unlaunched apps on app list start page.
[chromium-blink-merge.git] / extensions / common / manifest_constants.h
blob87913969665664bca378c0cfbe2eed62099b91dc
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 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 kCannotAccessChromeUrl[];
246 extern const char kCannotAccessExtensionUrl[];
247 extern const char kCannotAccessPage[];
248 extern const char kCannotChangeExtensionID[];
249 extern const char kCannotClaimAllHostsInExtent[];
250 extern const char kCannotClaimAllURLsInExtent[];
251 extern const char kCannotScriptGallery[];
252 extern const char kCannotScriptSigninPage[];
253 extern const char kCannotUninstallManagedExtension[];
254 extern const char kChromeVersionTooLow[];
255 extern const char kDevToolsExperimental[];
256 extern const char kDisabledByPolicy[];
257 extern const char kExpectString[];
258 extern const char kInvalidAboutPage[];
259 extern const char kInvalidAboutPageExpectRelativePath[];
260 extern const char kInvalidAllFrames[];
261 extern const char kInvalidAppIconColor[];
262 extern const char kInvalidBackground[];
263 extern const char kInvalidBackgroundAllowJsAccess[];
264 extern const char kInvalidBackgroundCombination[];
265 extern const char kInvalidBackgroundScript[];
266 extern const char kInvalidBackgroundScripts[];
267 extern const char kInvalidBackgroundInHostedApp[];
268 extern const char kInvalidBackgroundPersistent[];
269 extern const char kInvalidBackgroundPersistentNoPage[];
270 extern const char kInvalidBrowserAction[];
271 extern const char kInvalidBrowseURL[];
272 extern const char kInvalidBrowseURLs[];
273 extern const char kInvalidChromeURLOverrides[];
274 extern const char kInvalidCommandsKey[];
275 extern const char kInvalidContentCapabilities[];
276 extern const char kInvalidContentCapabilitiesMatch[];
277 extern const char kInvalidContentCapabilitiesMatchOrigin[];
278 extern const char kInvalidContentCapabilitiesPermission[];
279 extern const char kInvalidContentPack[];
280 extern const char kInvalidContentPackSites[];
281 extern const char kInvalidContentScript[];
282 extern const char kInvalidContentScriptsList[];
283 extern const char kInvalidContentSecurityPolicy[];
284 extern const char kInvalidCopresenceConfig[];
285 extern const char kInvalidCopresenceApiKey[];
286 extern const char kInvalidCSPInsecureValue[];
287 extern const char kInvalidCSPMissingSecureSrc[];
288 extern const char kInvalidCss[];
289 extern const char kInvalidCssList[];
290 extern const char kInvalidDefaultLocale[];
291 extern const char kInvalidDescription[];
292 extern const char kInvalidDevToolsPage[];
293 extern const char kInvalidDisplayInLauncher[];
294 extern const char kInvalidDisplayInNewTabPage[];
295 extern const char kInvalidEmptyDictionary[];
296 extern const char kInvalidExcludeMatch[];
297 extern const char kInvalidExcludeMatches[];
298 extern const char kInvalidExport[];
299 extern const char kInvalidExportPermissions[];
300 extern const char kInvalidExportWhitelist[];
301 extern const char kInvalidExportWhitelistString[];
302 extern const char kInvalidFileAccessList[];
303 extern const char kInvalidFileAccessValue[];
304 extern const char kInvalidFileBrowserHandler[];
305 extern const char kInvalidFileBrowserHandlerMIMETypes[];
306 extern const char kInvalidFileFiltersList[];
307 extern const char kInvalidFileFilterValue[];
308 extern const char kInvalidFileHandlers[];
309 extern const char kInvalidFileHandlersTooManyTypesAndExtensions[];
310 extern const char kInvalidFileHandlerExtension[];
311 extern const char kInvalidFileHandlerExtensionElement[];
312 extern const char kInvalidFileHandlerNoTypeOrExtension[];
313 extern const char kInvalidFileHandlerType[];
314 extern const char kInvalidFileHandlerTypeElement[];
315 extern const char kInvalidGlob[];
316 extern const char kInvalidGlobList[];
317 extern const char kInvalidHomepageOverrideURL[];
318 extern const char kInvalidHomepageURL[];
319 extern const char kInvalidIconPath[];
320 extern const char kInvalidIcons[];
321 extern const char kInvalidImport[];
322 extern const char kInvalidImportAndExport[];
323 extern const char kInvalidImportId[];
324 extern const char kInvalidImportVersion[];
325 extern const char kInvalidIncognitoBehavior[];
326 extern const char kInvalidInputComponents[];
327 extern const char kInvalidInputComponentDescription[];
328 extern const char kInvalidInputComponentLayoutName[];
329 extern const char kInvalidInputComponentName[];
330 extern const char kInvalidInputComponentShortcutKey[];
331 extern const char kInvalidInputComponentShortcutKeycode[];
332 extern const char kInvalidInputComponentType[];
333 extern const char kInvalidInputView[];
334 extern const char kInvalidIsolation[];
335 extern const char kInvalidIsolationValue[];
336 extern const char kInvalidJs[];
337 extern const char kInvalidJsList[];
338 extern const char kInvalidKey[];
339 extern const char kInvalidKeyBinding[];
340 extern const char kInvalidKeyBindingDescription[];
341 extern const char kInvalidKeyBindingDictionary[];
342 extern const char kInvalidKeyBindingMediaKeyWithModifier[];
343 extern const char kInvalidKeyBindingMissingPlatform[];
344 extern const char kInvalidKeyBindingTooMany[];
345 extern const char kInvalidKeyBindingUnknownPlatform[];
346 extern const char kInvalidKioskEnabled[];
347 extern const char kInvalidKioskOnly[];
348 extern const char kInvalidKioskOnlyButNotEnabled[];
349 extern const char kInvalidLauncherPage[];
350 extern const char kInvalidLauncherPagePage[];
351 extern const char kInvalidLaunchContainer[];
352 extern const char kInvalidLaunchValue[];
353 extern const char kInvalidLaunchValueContainer[];
354 extern const char kInvalidManifest[];
355 extern const char kInvalidManifestVersion[];
356 extern const char kInvalidManifestVersionOld[];
357 extern const char kInvalidMatch[];
358 extern const char kInvalidMatchAboutBlank[];
359 extern const char kInvalidMatchCount[];
360 extern const char kInvalidMatches[];
361 extern const char kInvalidMIMETypes[];
362 extern const char kInvalidMimeTypesHandler[];
363 extern const char kInvalidMinimumChromeVersion[];
364 extern const char kInvalidNaClModules[];
365 extern const char kInvalidNaClModulesMIMEType[];
366 extern const char kInvalidNaClModulesPath[];
367 extern const char kInvalidName[];
368 extern const char kInvalidOAuth2AutoApprove[];
369 extern const char kInvalidOAuth2ClientId[];
370 extern const char kInvalidOAuth2Scopes[];
371 extern const char kInvalidOfflineEnabled[];
372 extern const char kInvalidOmniboxKeyword[];
373 extern const char kInvalidOptionsUIChromeStyle[];
374 extern const char kInvalidOptionsUIOpenInTab[];
375 extern const char kInvalidOptionsPage[];
376 extern const char kInvalidOptionsPageExpectUrlInPackage[];
377 extern const char kInvalidOptionsPageInHostedApp[];
378 extern const char kInvalidPageAction[];
379 extern const char kInvalidPageActionDefaultTitle[];
380 extern const char kInvalidPageActionIconPath[];
381 extern const char kInvalidPageActionId[];
382 extern const char kInvalidPageActionName[];
383 extern const char kInvalidPageActionOldAndNewKeys[];
384 extern const char kInvalidPageActionPopup[];
385 extern const char kInvalidPageActionPopupHeight[];
386 extern const char kInvalidPageActionPopupPath[];
387 extern const char kInvalidPermissionWithDetail[];
388 extern const char kInvalidPermission[];
389 extern const char kInvalidPermissions[];
390 extern const char kInvalidPermissionScheme[];
391 extern const char kInvalidPlugins[];
392 extern const char kInvalidPluginsPath[];
393 extern const char kInvalidPluginsPublic[];
394 extern const char kInvalidRequirement[];
395 extern const char kInvalidRequirements[];
396 extern const char kInvalidRunAt[];
397 extern const char kInvalidSandboxedPagesList[];
398 extern const char kInvalidSandboxedPage[];
399 extern const char kInvalidSandboxedPagesCSP[];
400 extern const char kInvalidSearchEngineMissingKeys[];
401 extern const char kInvalidSearchEngineURL[];
402 extern const char kInvalidShortName[];
403 extern const char kInvalidSignature[];
404 extern const char kInvalidSpellcheck[];
405 extern const char kInvalidSpellcheckDictionaryFormat[];
406 extern const char kInvalidSpellcheckDictionaryLanguage[];
407 extern const char kInvalidSpellcheckDictionaryLocale[];
408 extern const char kInvalidSpellcheckDictionaryPath[];
409 extern const char kInvalidStartupOverrideURL[];
410 extern const char kInvalidSystemIndicator[];
411 extern const char kInvalidTheme[];
412 extern const char kInvalidThemeColors[];
413 extern const char kInvalidThemeImages[];
414 extern const char kInvalidThemeImagesMissing[];
415 extern const char kInvalidThemeTints[];
416 extern const char kInvalidTts[];
417 extern const char kInvalidTtsVoices[];
418 extern const char kInvalidTtsVoicesEventTypes[];
419 extern const char kInvalidTtsVoicesGender[];
420 extern const char kInvalidTtsVoicesLang[];
421 extern const char kInvalidTtsVoicesRemote[];
422 extern const char kInvalidTtsVoicesVoiceName[];
423 extern const char kInvalidUpdateURL[];
424 extern const char kInvalidURLPatternError[];
425 extern const char kInvalidURLHandlers[];
426 extern const char kInvalidURLHandlerPatternElement[];
427 extern const char kInvalidURLHandlerTitle[];
428 extern const char kInvalidURLHandlerPattern[];
429 extern const char kInvalidVersion[];
430 extern const char kInvalidVersionName[];
431 extern const char kInvalidWebAccessibleResourcesList[];
432 extern const char kInvalidWebAccessibleResource[];
433 extern const char kInvalidWebview[];
434 extern const char kInvalidWebviewAccessibleResourcesList[];
435 extern const char kInvalidWebviewAccessibleResource[];
436 extern const char kInvalidWebviewPartition[];
437 extern const char kInvalidWebviewPartitionName[];
438 extern const char kInvalidWebviewPartitionsList[];
439 extern const char kInvalidWebURL[];
440 extern const char kInvalidWebURLs[];
441 extern const char kInvalidZipHash[];
442 extern const char kInsecureContentSecurityPolicy[];
443 extern const char kKeyIsDeprecatedWithReplacement[];
444 extern const char kLauncherPagePageRequired[];
445 extern const char kLaunchPathAndExtentAreExclusive[];
446 extern const char kLaunchPathAndURLAreExclusive[];
447 extern const char kLaunchURLRequired[];
448 extern const char kLocalesInvalidLocale[];
449 extern const char kLocalesMessagesFileMissing[];
450 extern const char kLocalesNoDefaultLocaleSpecified[];
451 extern const char kLocalesNoDefaultMessages[];
452 extern const char kLocalesNoValidLocaleNamesListed[];
453 extern const char kLocalesTreeMissing[];
454 extern const char kManifestParseError[];
455 extern const char kManifestUnreadable[];
456 extern const char kMissingFile[];
457 extern const char kMultipleOverrides[];
458 extern const char kNoPermissionForMIMETypes[];
459 extern const char kNoWildCardsInPaths[];
460 extern const char kOneUISurfaceOnly[];
461 extern const char kPermissionMustBeOptional[];
462 extern const char kPermissionNotAllowed[];
463 extern const char kPermissionNotAllowedInManifest[];
464 extern const char kPermissionUnknownOrMalformed[];
465 extern const char kReservedMessageFound[];
466 extern const char kUnrecognizedManifestKey[];
467 extern const char kUnrecognizedManifestProperty[];
468 extern const char kWebRequestConflictsWithLazyBackground[];
469 #if defined(OS_CHROMEOS)
470 extern const char kIllegalPlugins[];
471 #endif
473 } // namespace manifest_errors
475 } // namespace extensions
477 #endif // EXTENSIONS_COMMON_MANIFEST_CONSTANTS_H_