[BuildBreak] Linux: Fix g++ 4.8 compilation for error: multi-line comment [-Werror...
[chromium-blink-merge.git] / extensions / common / manifest_constants.h
blob9852e88ce1b4b78bb1d7d0974343387c39903aa3
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 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 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 kNaClModules[];
93 extern const char kNaClModulesMIMEType[];
94 extern const char kNaClModulesPath[];
95 extern const char kName[];
96 extern const char kOAuth2[];
97 extern const char kOAuth2AutoApprove[];
98 extern const char kOAuth2ClientId[];
99 extern const char kOAuth2Scopes[];
100 extern const char kOfflineEnabled[];
101 extern const char kOmnibox[];
102 extern const char kOmniboxKeyword[];
103 extern const char kOptionalPermissions[];
104 extern const char kOptionsPage[];
105 extern const char kOverrideHomepage[];
106 extern const char kOverrideSearchProvider[];
107 extern const char kOverrideStartupPage[];
108 extern const char kPageAction[];
109 extern const char kPageActionDefaultIcon[];
110 extern const char kPageActionDefaultPopup[];
111 extern const char kPageActionDefaultTitle[];
112 extern const char kPageActionIcons[];
113 extern const char kPageActionId[];
114 extern const char kPageActionPopup[];
115 extern const char kPageActionPopupPath[];
116 extern const char kPageActions[];
117 extern const char kPermissions[];
118 extern const char kPlatformAppBackground[];
119 extern const char kPlatformAppBackgroundPage[];
120 extern const char kPlatformAppBackgroundScripts[];
121 extern const char kPlatformAppContentSecurityPolicy[];
122 extern const char kPlatformAppServiceWorker[];
123 extern const char kPlatformAppServiceWorkerScript[];
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 kResources[];
130 extern const char kRequirements[];
131 extern const char kRunAt[];
132 extern const char kSandboxedPages[];
133 extern const char kSandboxedPagesCSP[];
134 extern const char kScriptBadge[];
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 kSuggestedKey[];
149 extern const char kSynthesizeBrowserAction[];
150 extern const char kSystemIndicator[];
151 extern const char kTheme[];
152 extern const char kThemeColors[];
153 extern const char kThemeDisplayProperties[];
154 extern const char kThemeImages[];
155 extern const char kThemeTints[];
156 extern const char kTtsEngine[];
157 extern const char kTtsGenderFemale[];
158 extern const char kTtsGenderMale[];
159 extern const char kTtsVoices[];
160 extern const char kTtsVoicesEventTypeEnd[];
161 extern const char kTtsVoicesEventTypeError[];
162 extern const char kTtsVoicesEventTypeMarker[];
163 extern const char kTtsVoicesEventTypeSentence[];
164 extern const char kTtsVoicesEventTypeStart[];
165 extern const char kTtsVoicesEventTypeWord[];
166 extern const char kTtsVoicesEventTypes[];
167 extern const char kTtsVoicesGender[];
168 extern const char kTtsVoicesLang[];
169 extern const char kTtsVoicesRemote[];
170 extern const char kTtsVoicesVoiceName[];
171 extern const char kType[];
172 extern const char kUIOverride[];
173 extern const char kUpdateURL[];
174 extern const char kUrlHandlers[];
175 extern const char kUrlHandlerTitle[];
176 extern const char kVersion[];
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 kBrowserActionCommandEvent[];
191 extern const char kIncognitoSplit[];
192 extern const char kIncognitoSpanning[];
193 extern const char kIntentDispositionWindow[];
194 extern const char kIntentDispositionInline[];
195 extern const char kIsolatedStorage[];
196 extern const char kKeybindingPlatformChromeOs[];
197 extern const char kKeybindingPlatformDefault[];
198 extern const char kKeybindingPlatformLinux[];
199 extern const char kKeybindingPlatformMac[];
200 extern const char kKeybindingPlatformWin[];
201 extern const char kKeyAlt[];
202 extern const char kKeyShift[];
203 extern const char kKeyCommand[];
204 extern const char kKeyCtrl[];
205 extern const char kKeyComma[];
206 extern const char kKeyDel[];
207 extern const char kKeyDown[];
208 extern const char kKeyHome[];
209 extern const char kKeyEnd[];
210 extern const char kKeyIns[];
211 extern const char kKeyLeft[];
212 extern const char kKeyMacCtrl[];
213 extern const char kKeyMediaNextTrack[];
214 extern const char kKeyMediaPlayPause[];
215 extern const char kKeyMediaPrevTrack[];
216 extern const char kKeyMediaStop[];
217 extern const char kKeyPgDwn[];
218 extern const char kKeyPgUp[];
219 extern const char kKeyPeriod[];
220 extern const char kKeyRight[];
221 extern const char kKeySeparator[];
222 extern const char kKeyTab[];
223 extern const char kKeyUp[];
224 extern const char kLaunchContainerPanel[];
225 extern const char kLaunchContainerTab[];
226 extern const char kLaunchContainerWindow[];
227 extern const char kPageActionCommandEvent[];
228 extern const char kPageActionTypePermanent[];
229 extern const char kPageActionTypeTab[];
230 extern const char kScriptBadgeCommandEvent[];
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 kExperimentalFlagRequired[];
259 extern const char kInvalidAboutPage[];
260 extern const char kInvalidAboutPageExpectRelativePath[];
261 extern const char kInvalidAllFrames[];
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 kInvalidContentPack[];
276 extern const char kInvalidContentPackSites[];
277 extern const char kInvalidContentScript[];
278 extern const char kInvalidContentScriptsList[];
279 extern const char kInvalidContentSecurityPolicy[];
280 extern const char kInvalidCss[];
281 extern const char kInvalidCssList[];
282 extern const char kInvalidDefaultLocale[];
283 extern const char kInvalidDescription[];
284 extern const char kInvalidDevToolsPage[];
285 extern const char kInvalidDisplayInLauncher[];
286 extern const char kInvalidDisplayInNewTabPage[];
287 extern const char kInvalidEmptyDictionary[];
288 extern const char kInvalidExcludeMatch[];
289 extern const char kInvalidExcludeMatches[];
290 extern const char kInvalidExport[];
291 extern const char kInvalidExportPermissions[];
292 extern const char kInvalidExportResources[];
293 extern const char kInvalidExportResourcesString[];
294 extern const char kInvalidExportWhitelist[];
295 extern const char kInvalidExportWhitelistString[];
296 extern const char kInvalidFileAccessList[];
297 extern const char kInvalidFileAccessValue[];
298 extern const char kInvalidFileBrowserHandler[];
299 extern const char kInvalidFileBrowserHandlerMIMETypes[];
300 extern const char kInvalidFileFiltersList[];
301 extern const char kInvalidFileFilterValue[];
302 extern const char kInvalidFileHandlers[];
303 extern const char kInvalidFileHandlersTooManyTypesAndExtensions[];
304 extern const char kInvalidFileHandlerExtension[];
305 extern const char kInvalidFileHandlerExtensionElement[];
306 extern const char kInvalidFileHandlerNoTypeOrExtension[];
307 extern const char kInvalidFileHandlerType[];
308 extern const char kInvalidFileHandlerTypeElement[];
309 extern const char kInvalidGlob[];
310 extern const char kInvalidGlobList[];
311 extern const char kInvalidHomepageOverrideURL[];
312 extern const char kInvalidHomepageURL[];
313 extern const char kInvalidIconPath[];
314 extern const char kInvalidIcons[];
315 extern const char kInvalidImport[];
316 extern const char kInvalidImportAndExport[];
317 extern const char kInvalidImportId[];
318 extern const char kInvalidImportVersion[];
319 extern const char kInvalidIncognitoBehavior[];
320 extern const char kInvalidInputComponents[];
321 extern const char kInvalidInputComponentDescription[];
322 extern const char kInvalidInputComponentLayoutName[];
323 extern const char kInvalidInputComponentName[];
324 extern const char kInvalidInputComponentShortcutKey[];
325 extern const char kInvalidInputComponentShortcutKeycode[];
326 extern const char kInvalidInputComponentType[];
327 extern const char kInvalidInputView[];
328 extern const char kInvalidIntent[];
329 extern const char kInvalidIntentDisposition[];
330 extern const char kInvalidIntentDispositionInPlatformApp[];
331 extern const char kInvalidIntentHref[];
332 extern const char kInvalidIntentHrefEmpty[];
333 extern const char kInvalidIntentHrefInPlatformApp[];
334 extern const char kInvalidIntentHrefOldAndNewKey[];
335 extern const char kInvalidIntentPageInHostedApp[];
336 extern const char kInvalidIntents[];
337 extern const char kInvalidIntentType[];
338 extern const char kInvalidIntentTypeElement[];
339 extern const char kInvalidIntentTitle[];
340 extern const char kInvalidIsolation[];
341 extern const char kInvalidIsolationValue[];
342 extern const char kInvalidJs[];
343 extern const char kInvalidJsList[];
344 extern const char kInvalidKey[];
345 extern const char kInvalidKeyBinding[];
346 extern const char kInvalidKeyBindingDescription[];
347 extern const char kInvalidKeyBindingDictionary[];
348 extern const char kInvalidKeyBindingMediaKeyWithModifier[];
349 extern const char kInvalidKeyBindingMissingPlatform[];
350 extern const char kInvalidKeyBindingTooMany[];
351 extern const char kInvalidKeyBindingUnknownPlatform[];
352 extern const char kInvalidKioskEnabled[];
353 extern const char kInvalidKioskOnly[];
354 extern const char kInvalidKioskOnlyButNotEnabled[];
355 extern const char kInvalidLaunchContainer[];
356 extern const char kInvalidLaunchValue[];
357 extern const char kInvalidLaunchValueContainer[];
358 extern const char kInvalidManifest[];
359 extern const char kInvalidManifestVersion[];
360 extern const char kInvalidManifestVersionOld[];
361 extern const char kInvalidMatch[];
362 extern const char kInvalidMatchAboutBlank[];
363 extern const char kInvalidMatchCount[];
364 extern const char kInvalidMatches[];
365 extern const char kInvalidMIMETypes[];
366 extern const char kInvalidMimeTypesHandler[];
367 extern const char kInvalidMinimumChromeVersion[];
368 extern const char kInvalidNaClModules[];
369 extern const char kInvalidNaClModulesMIMEType[];
370 extern const char kInvalidNaClModulesPath[];
371 extern const char kInvalidName[];
372 extern const char kInvalidOAuth2AutoApprove[];
373 extern const char kInvalidOAuth2ClientId[];
374 extern const char kInvalidOAuth2Scopes[];
375 extern const char kInvalidOfflineEnabled[];
376 extern const char kInvalidOmniboxKeyword[];
377 extern const char kInvalidOptionsPage[];
378 extern const char kInvalidOptionsPageExpectUrlInPackage[];
379 extern const char kInvalidOptionsPageInHostedApp[];
380 extern const char kInvalidPageAction[];
381 extern const char kInvalidPageActionDefaultTitle[];
382 extern const char kInvalidPageActionIconPath[];
383 extern const char kInvalidPageActionId[];
384 extern const char kInvalidPageActionName[];
385 extern const char kInvalidPageActionOldAndNewKeys[];
386 extern const char kInvalidPageActionPopup[];
387 extern const char kInvalidPageActionPopupHeight[];
388 extern const char kInvalidPageActionPopupPath[];
389 extern const char kInvalidPageActionsList[];
390 extern const char kInvalidPageActionsListSize[];
391 extern const char kInvalidPageActionTypeValue[];
392 extern const char kInvalidPermissionWithDetail[];
393 extern const char kInvalidPermission[];
394 extern const char kInvalidPermissions[];
395 extern const char kInvalidPermissionScheme[];
396 extern const char kInvalidPlugins[];
397 extern const char kInvalidPluginsPath[];
398 extern const char kInvalidPluginsPublic[];
399 extern const char kInvalidRequirement[];
400 extern const char kInvalidRequirements[];
401 extern const char kInvalidRunAt[];
402 extern const char kInvalidSandboxedPagesList[];
403 extern const char kInvalidSandboxedPage[];
404 extern const char kInvalidSandboxedPagesCSP[];
405 extern const char kInvalidScriptBadge[];
406 extern const char kInvalidSearchEngineMissingKeys[];
407 extern const char kInvalidSearchEngineURL[];
408 extern const char kInvalidServiceWorkerScript[];
409 extern const char kInvalidShortName[];
410 extern const char kInvalidSignature[];
411 extern const char kInvalidSpellcheck[];
412 extern const char kInvalidSpellcheckDictionaryFormat[];
413 extern const char kInvalidSpellcheckDictionaryLanguage[];
414 extern const char kInvalidSpellcheckDictionaryLocale[];
415 extern const char kInvalidSpellcheckDictionaryPath[];
416 extern const char kInvalidStartupOverrideURL[];
417 extern const char kInvalidSystemIndicator[];
418 extern const char kInvalidTheme[];
419 extern const char kInvalidThemeColors[];
420 extern const char kInvalidThemeImages[];
421 extern const char kInvalidThemeImagesMissing[];
422 extern const char kInvalidThemeTints[];
423 extern const char kInvalidTts[];
424 extern const char kInvalidTtsVoices[];
425 extern const char kInvalidTtsVoicesEventTypes[];
426 extern const char kInvalidTtsVoicesGender[];
427 extern const char kInvalidTtsVoicesLang[];
428 extern const char kInvalidTtsVoicesRemote[];
429 extern const char kInvalidTtsVoicesVoiceName[];
430 extern const char kInvalidUpdateURL[];
431 extern const char kInvalidURLPatternError[];
432 extern const char kInvalidURLHandlers[];
433 extern const char kInvalidURLHandlerPatternElement[];
434 extern const char kInvalidURLHandlerTitle[];
435 extern const char kInvalidURLHandlerPattern[];
436 extern const char kInvalidVersion[];
437 extern const char kInvalidWebAccessibleResourcesList[];
438 extern const char kInvalidWebAccessibleResource[];
439 extern const char kInvalidWebview[];
440 extern const char kInvalidWebviewAccessibleResourcesList[];
441 extern const char kInvalidWebviewAccessibleResource[];
442 extern const char kInvalidWebviewPartition[];
443 extern const char kInvalidWebviewPartitionName[];
444 extern const char kInvalidWebviewPartitionsList[];
445 extern const char kInvalidWebURL[];
446 extern const char kInvalidWebURLs[];
447 extern const char kInvalidZipHash[];
448 extern const char kInsecureContentSecurityPolicy[];
449 extern const char kKeyIsDeprecatedWithReplacement[];
450 extern const char kLaunchPathAndExtentAreExclusive[];
451 extern const char kLaunchPathAndURLAreExclusive[];
452 extern const char kLaunchURLRequired[];
453 extern const char kLocalesInvalidLocale[];
454 extern const char kLocalesMessagesFileMissing[];
455 extern const char kLocalesNoDefaultLocaleSpecified[];
456 extern const char kLocalesNoDefaultMessages[];
457 extern const char kLocalesNoValidLocaleNamesListed[];
458 extern const char kLocalesTreeMissing[];
459 extern const char kManifestParseError[];
460 extern const char kManifestUnreadable[];
461 extern const char kMissingFile[];
462 extern const char kMultipleOverrides[];
463 extern const char kNoPermissionForMIMETypes[];
464 extern const char kNoWildCardsInPaths[];
465 extern const char kOneUISurfaceOnly[];
466 extern const char kPermissionMustBeOptional[];
467 extern const char kPermissionNotAllowed[];
468 extern const char kPermissionNotAllowedInManifest[];
469 extern const char kPermissionUnknownOrMalformed[];
470 extern const char kReservedMessageFound[];
471 extern const char kUnrecognizedManifestKey[];
472 extern const char kUnrecognizedManifestProperty[];
473 extern const char kScriptBadgeRequiresFlag[];
474 extern const char kScriptBadgeIconIgnored[];
475 extern const char kScriptBadgeTitleIgnored[];
476 extern const char kServiceWorkerRequiresFlag[];
477 extern const char kWebRequestConflictsWithLazyBackground[];
478 #if defined(OS_CHROMEOS)
479 extern const char kIllegalPlugins[];
480 #endif
482 } // namespace manifest_errors
484 } // namespace extensions
486 #endif // EXTENSIONS_COMMON_MANIFEST_CONSTANTS_H_