Fix sort order of unlaunched apps on app list start page.
[chromium-blink-merge.git] / extensions / common / manifest_constants.cc
blob1c51334cba975b42b1c3a280e75023ef7179c875
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 #include "extensions/common/manifest_constants.h"
7 namespace extensions {
9 namespace manifest_keys {
11 const char kAboutPage[] = "about_page";
12 const char kAllFrames[] = "all_frames";
13 const char kAltKey[] = "altKey";
14 const char kApp[] = "app";
15 const char kAppIconColor[] = "app.icon_color";
16 const char kAutomation[] = "automation";
17 const char kBackgroundAllowJsAccess[] = "background.allow_js_access";
18 const char kBackgroundPage[] = "background.page";
19 const char kBackgroundPageLegacy[] = "background_page";
20 const char kBackgroundPersistent[] = "background.persistent";
21 const char kBackgroundScripts[] = "background.scripts";
22 const char kBluetooth[] = "bluetooth";
23 const char kBookmarkUI[] = "bookmarks_ui";
24 const char kBrowserAction[] = "browser_action";
25 const char kChromeURLOverrides[] = "chrome_url_overrides";
26 const char kCommands[] = "commands";
27 const char kContentCapabilities[] = "content_capabilities";
28 const char kContentPack[] = "content_pack";
29 const char kContentPackSites[] = "sites";
30 const char kContentScripts[] = "content_scripts";
31 const char kContentSecurityPolicy[] = "content_security_policy";
32 const char kConvertedFromUserScript[] = "converted_from_user_script";
33 const char kCopresence[] = "copresence";
34 const char kCss[] = "css";
35 const char kCtrlKey[] = "ctrlKey";
36 const char kCurrentLocale[] = "current_locale";
37 const char kDefaultLocale[] = "default_locale";
38 const char kDescription[] = "description";
39 const char kDevToolsPage[] = "devtools_page";
40 const char kDisplayInLauncher[] = "display_in_launcher";
41 const char kDisplayInNewTabPage[] = "display_in_new_tab_page";
42 const char kEventName[] = "event_name";
43 const char kExcludeGlobs[] = "exclude_globs";
44 const char kExcludeMatches[] = "exclude_matches";
45 const char kExport[] = "export";
46 const char kExternallyConnectable[] = "externally_connectable";
47 const char kFileAccessList[] = "file_access";
48 const char kFileFilters[] = "file_filters";
49 const char kFileBrowserHandlers[] = "file_browser_handlers";
50 const char kFileHandlers[] = "file_handlers";
51 const char kFileHandlerExtensions[] = "extensions";
52 const char kFileHandlerTypes[] = "types";
53 const char kGlobal[] = "global";
54 const char kHideBookmarkButton[] = "hide_bookmark_button";
55 const char kHomepageURL[] = "homepage_url";
56 const char kIcons[] = "icons";
57 const char kId[] = "id";
58 const char kImeOptionsPage[] = "options_page";
59 const char kImport[] = "import";
60 const char kIncognito[] = "incognito";
61 const char kIncludeGlobs[] = "include_globs";
62 const char kIndicator[] = "indicator";
63 const char kInputComponents[] = "input_components";
64 const char kInputView[] = "input_view";
65 const char kIsolation[] = "app.isolation";
66 const char kJs[] = "js";
67 const char kKey[] = "key";
68 const char kKeycode[] = "keyCode";
69 const char kKioskEnabled[] = "kiosk_enabled";
70 const char kKioskOnly[] = "kiosk_only";
71 const char kKioskMode[] = "kiosk_mode";
72 const char kLanguage[] = "language";
73 const char kLaunch[] = "app.launch";
74 const char kLaunchContainer[] = "app.launch.container";
75 const char kLauncherPage[] = "launcher_page";
76 const char kLauncherPagePage[] = "launcher_page.page";
77 const char kLaunchHeight[] = "app.launch.height";
78 const char kLaunchLocalPath[] = "app.launch.local_path";
79 const char kLaunchWebURL[] = "app.launch.web_url";
80 const char kLaunchWidth[] = "app.launch.width";
81 const char kLayouts[] = "layouts";
82 const char kManifestVersion[] = "manifest_version";
83 const char kMatchAboutBlank[] = "match_about_blank";
84 const char kMatches[] = "matches";
85 const char kMinimumChromeVersion[] = "minimum_chrome_version";
86 const char kMinimumVersion[] = "minimum_version";
87 const char kMIMETypes[] = "mime_types";
88 const char kMimeTypesHandler[] = "mime_types_handler";
89 const char kName[] = "name";
90 const char kNaClArch[] = "nacl_arch";
91 const char kNaClModules[] = "nacl_modules";
92 const char kNaClModulesMIMEType[] = "mime_type";
93 const char kNaClModulesPath[] = "path";
94 const char kOAuth2[] = "oauth2";
95 const char kOAuth2AutoApprove[] = "oauth2.auto_approve";
96 const char kOAuth2ClientId[] = "oauth2.client_id";
97 const char kOAuth2Scopes[] = "oauth2.scopes";
98 const char kOfflineEnabled[] = "offline_enabled";
99 const char kOmnibox[] = "omnibox";
100 const char kOmniboxKeyword[] = "omnibox.keyword";
101 const char kOptionalPermissions[] = "optional_permissions";
102 const char kOptionsPage[] = "options_page";
103 const char kOptionsUI[] = "options_ui";
104 const char kOverrideHomepage[] = "chrome_settings_overrides.homepage";
105 const char kOverrideSearchProvider[] =
106 "chrome_settings_overrides.search_provider";
107 const char kOverrideStartupPage[] = "chrome_settings_overrides.startup_pages";
108 const char kPageAction[] = "page_action";
109 const char kPageActionDefaultIcon[] = "default_icon";
110 const char kPageActionDefaultPopup[] = "default_popup";
111 const char kPageActionDefaultTitle[] = "default_title";
112 const char kPageActionIcons[] = "icons";
113 const char kPageActionId[] = "id";
114 const char kPageActionPopup[] = "popup";
115 const char kPageActionPopupPath[] = "path";
116 const char kPermissions[] = "permissions";
117 const char kPlatformAppBackground[] = "app.background";
118 const char kPlatformAppBackgroundPage[] = "app.background.page";
119 const char kPlatformAppBackgroundScripts[] = "app.background.scripts";
120 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy";
121 const char kPlatforms[] = "platforms";
122 const char kPlugins[] = "plugins";
123 const char kPluginsPath[] = "path";
124 const char kPluginsPublic[] = "public";
125 const char kPublicKey[] = "key";
126 const char kRemoveButton[] = "remove_button";
127 const char kRequirements[] = "requirements";
128 const char kRunAt[] = "run_at";
129 const char kSandboxedPages[] = "sandbox.pages";
130 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy";
131 const char kSettingsOverride[] = "chrome_settings_overrides";
132 const char kSettingsOverrideAlternateUrls[] =
133 "chrome_settings_overrides.search_provider.alternate_urls";
134 const char kShiftKey[] = "shiftKey";
135 const char kShortcutKey[] = "shortcutKey";
136 const char kShortName[] = "short_name";
137 const char kSignature[] = "signature";
138 const char kSockets[] = "sockets";
139 const char kSpellcheck[] = "spellcheck";
140 const char kSpellcheckDictionaryFormat[] = "dictionary_format";
141 const char kSpellcheckDictionaryLanguage[] = "dictionary_language";
142 const char kSpellcheckDictionaryLocale[] = "dictionary_locale";
143 const char kSpellcheckDictionaryPath[] = "dictionary_path";
144 const char kStorageManagedSchema[] = "storage.managed_schema";
145 const char kSubPackagePath[] = "sub_package_path";
146 const char kSuggestedKey[] = "suggested_key";
147 const char kSynthesizeExtensionAction[] = "_synthesize_extension_action";
148 const char kSystemIndicator[] = "system_indicator";
149 const char kTheme[] = "theme";
150 const char kThemeColors[] = "colors";
151 const char kThemeDisplayProperties[] = "properties";
152 const char kThemeImages[] = "images";
153 const char kThemeTints[] = "tints";
154 const char kTtsEngine[] = "tts_engine";
155 const char kTtsGenderFemale[] = "female";
156 const char kTtsGenderMale[] = "male";
157 const char kTtsVoices[] = "voices";
158 const char kTtsVoicesEventTypeEnd[] = "end";
159 const char kTtsVoicesEventTypeError[] = "error";
160 const char kTtsVoicesEventTypeMarker[] = "marker";
161 const char kTtsVoicesEventTypeSentence[] = "sentence";
162 const char kTtsVoicesEventTypeStart[] = "start";
163 const char kTtsVoicesEventTypeWord[] = "word";
164 const char kTtsVoicesEventTypes[] = "event_types";
165 const char kTtsVoicesGender[] = "gender";
166 const char kTtsVoicesLang[] = "lang";
167 const char kTtsVoicesRemote[] = "remote";
168 const char kTtsVoicesVoiceName[] = "voice_name";
169 const char kType[] = "type";
170 const char kUIOverride[] = "chrome_ui_overrides";
171 const char kUpdateURL[] = "update_url";
172 const char kUrlHandlers[] = "url_handlers";
173 const char kUrlHandlerTitle[] = "title";
174 const char kVersion[] = "version";
175 const char kVersionName[] = "version_name";
176 const char kWebAccessibleResources[] = "web_accessible_resources";
177 const char kWebURLs[] = "app.urls";
178 const char kWebview[] = "webview";
179 const char kWebviewAccessibleResources[] = "accessible_resources";
180 const char kWebviewName[] = "name";
181 const char kWebviewPartitions[] = "partitions";
182 const char kWhitelist[] = "whitelist";
184 } // namespace manifest_keys
186 namespace manifest_values {
188 const char kApiKey[] = "api_key";
189 const char kBrowserActionCommandEvent[] = "_execute_browser_action";
190 const char kIncognitoSplit[] = "split";
191 const char kIncognitoSpanning[] = "spanning";
192 const char kIsolatedStorage[] = "storage";
193 const char kKeybindingPlatformChromeOs[] = "chromeos";
194 const char kKeybindingPlatformDefault[] = "default";
195 const char kKeybindingPlatformLinux[] = "linux";
196 const char kKeybindingPlatformMac[] = "mac";
197 const char kKeybindingPlatformWin[] = "windows";
198 const char kKeyAlt[] = "Alt";
199 const char kKeyComma[] = "Comma";
200 const char kKeyCommand[] = "Command";
201 const char kKeyCtrl[] = "Ctrl";
202 const char kKeyDel[] = "Delete";
203 const char kKeyDown[] = "Down";
204 const char kKeyEnd[] = "End";
205 const char kKeyHome[] = "Home";
206 const char kKeyIns[] = "Insert";
207 const char kKeyLeft[] = "Left";
208 const char kKeyMacCtrl[] = "MacCtrl";
209 const char kKeyMediaNextTrack[] = "MediaNextTrack";
210 const char kKeyMediaPlayPause[] = "MediaPlayPause";
211 const char kKeyMediaPrevTrack[] = "MediaPrevTrack";
212 const char kKeyMediaStop[] = "MediaStop";
213 const char kKeyPgDwn[] = "PageDown";
214 const char kKeyPgUp[] = "PageUp";
215 const char kKeyPeriod[] = "Period";
216 const char kKeyRight[] = "Right";
217 const char kKeySearch[] = "Search";
218 const char kKeySeparator[] = "+";
219 const char kKeyShift[] = "Shift";
220 const char kKeySpace[] = "Space";
221 const char kKeyTab[] = "Tab";
222 const char kKeyUp[] = "Up";
223 const char kRunAtDocumentStart[] = "document_start";
224 const char kRunAtDocumentEnd[] = "document_end";
225 const char kRunAtDocumentIdle[] = "document_idle";
226 const char kPageActionCommandEvent[] = "_execute_page_action";
227 const char kPageActionTypeTab[] = "tab";
228 const char kPageActionTypePermanent[] = "permanent";
229 const char kLaunchContainerPanel[] = "panel";
230 const char kLaunchContainerTab[] = "tab";
231 const char kLaunchContainerWindow[] = "window";
233 } // namespace manifest_values
235 // Extension-related error messages. Some of these are simple patterns, where a
236 // '*' is replaced at runtime with a specific value. This is used instead of
237 // printf because we want to unit test them and scanf is hard to make
238 // cross-platform.
239 namespace manifest_errors {
241 const char kActiveTabPermissionNotGranted[] =
242 "The 'activeTab' permission is not in effect because this extension has "
243 "not been in invoked.";
244 const char kAllURLOrActiveTabNeeded[] =
245 "Either the '<all_urls>' or 'activeTab' permission is required.";
246 const char kAppsNotEnabled[] =
247 "Apps are not enabled.";
248 const char kBackgroundPermissionNeeded[] =
249 "Hosted apps that use 'background_page' must have the 'background' "
250 "permission.";
251 const char kBackgroundRequiredForPlatformApps[] =
252 "Packaged apps must have a background page or background scripts.";
253 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
254 const char kCannotAccessExtensionUrl[] =
255 "Cannot access a chrome-extension:// URL of different extension";
256 const char kCannotAccessPage[] =
257 "Cannot access contents of url \"*\". "
258 "Extension manifest must request permission to access this host.";
259 const char kCannotChangeExtensionID[] =
260 "Installed extensions cannot change their IDs.";
261 const char kCannotClaimAllHostsInExtent[] =
262 "Cannot claim all hosts ('*') in an extent.";
263 const char kCannotClaimAllURLsInExtent[] =
264 "Cannot claim all URLs in an extent.";
265 const char kCannotScriptGallery[] =
266 "The extensions gallery cannot be scripted.";
267 const char kCannotScriptSigninPage[] =
268 "The sign-in page cannot be scripted.";
269 const char kChromeVersionTooLow[] =
270 "This extension requires * version * or greater.";
271 const char kDisabledByPolicy[] =
272 "This extension has been disabled by your administrator.";
273 const char kExpectString[] = "Expect string value.";
274 const char kInvalidAboutPage[] = "Invalid value for 'about_page'.";
275 const char kInvalidAboutPageExpectRelativePath[] =
276 "Invalid value for 'about_page'. Value must be a relative path.";
277 const char kInvalidAllFrames[] =
278 "Invalid value for 'content_scripts[*].all_frames'.";
279 const char kInvalidAppIconColor[] = "Invalid value for app.icon_color.";
280 const char kInvalidBackground[] =
281 "Invalid value for 'background_page'.";
282 const char kInvalidBackgroundAllowJsAccess[] =
283 "Invalid value for 'background.allow_js_access'.";
284 const char kInvalidBackgroundCombination[] =
285 "The background.page and background.scripts properties cannot be used at "
286 "the same time.";
287 const char kInvalidBackgroundScript[] =
288 "Invalid value for 'background.scripts[*]'.";
289 const char kInvalidBackgroundScripts[] =
290 "Invalid value for 'background.scripts'.";
291 const char kInvalidBackgroundInHostedApp[] =
292 "Invalid value for 'background_page'. Hosted apps must specify an "
293 "absolute HTTPS URL for the background page.";
294 const char kInvalidBackgroundPersistent[] =
295 "Invalid value for 'background.persistent'.";
296 const char kInvalidBackgroundPersistentNoPage[] =
297 "Must specify one of background.page or background.scripts to use"
298 " background.persistent.";
299 const char kInvalidBrowserAction[] =
300 "Invalid value for 'browser_action'.";
301 const char kInvalidChromeURLOverrides[] =
302 "Invalid value for 'chrome_url_overrides'.";
303 const char kInvalidCommandsKey[] =
304 "Invalid value for 'commands'.";
305 const char kInvalidContentCapabilities[] =
306 "Invalid value for 'content_capabilities'.";
307 const char kInvalidContentCapabilitiesMatch[] =
308 "Invalid content_capabilities URL pattern: *";
309 const char kInvalidContentCapabilitiesMatchOrigin[] =
310 "Domain wildcards are not allowed for content_capabilities URL patterns.";
311 const char kInvalidContentCapabilitiesPermission[] =
312 "Invalid content_capabilities permission: *.";
313 const char kInvalidContentPack[] =
314 "Invalid value for 'content_pack'.";
315 const char kInvalidContentPackSites[] =
316 "Invalid value for Content Pack sites - files must be strings.";
317 const char kInvalidContentScript[] =
318 "Invalid value for 'content_scripts[*]'.";
319 const char kInvalidContentScriptsList[] =
320 "Invalid value for 'content_scripts'.";
321 const char kInvalidContentSecurityPolicy[] =
322 "Invalid value for 'content_security_policy'.";
323 const char kInvalidCopresenceConfig[] = "Invalid value for 'copresence'.";
324 const char kInvalidCopresenceApiKey[] =
325 "copresence.api_key must not be empty.";
326 const char kInvalidCSPInsecureValue[] =
327 "Ignored insecure CSP value \"*\" in directive '*'.";
328 const char kInvalidCSPMissingSecureSrc[] =
329 "CSP directive '*' must be specified (either explicitly, or implicitly via"
330 " 'default-src') and must whitelist only secure resources.";
331 const char kInvalidCss[] =
332 "Invalid value for 'content_scripts[*].css[*]'.";
333 const char kInvalidCssList[] =
334 "Required value 'content_scripts[*].css' is invalid.";
335 const char kInvalidDefaultLocale[] =
336 "Invalid value for default locale - locale name must be a string.";
337 const char kInvalidDescription[] =
338 "Invalid value for 'description'.";
339 const char kInvalidDevToolsPage[] =
340 "Invalid value for 'devtools_page'.";
341 const char kInvalidDisplayInLauncher[] =
342 "Invalid value for 'display_in_launcher'.";
343 const char kInvalidDisplayInNewTabPage[] =
344 "Invalid value for 'display_in_new_tab_page'.";
345 const char kInvalidEmptyDictionary[] = "Empty dictionary for '*'.";
346 const char kInvalidExcludeMatch[] =
347 "Invalid value for 'content_scripts[*].exclude_matches[*]': *";
348 const char kInvalidExcludeMatches[] =
349 "Invalid value for 'content_scripts[*].exclude_matches'.";
350 const char kInvalidExport[] =
351 "Invalid value for 'export'.";
352 const char kInvalidExportPermissions[] =
353 "Permissions are not allowed for extensions that export resources.";
354 const char kInvalidExportWhitelist[] =
355 "Invalid value for 'export.whitelist'.";
356 const char kInvalidExportWhitelistString[] =
357 "Invalid value for 'export.whitelist[*]'.";
358 const char kInvalidFileAccessList[] =
359 "Invalid value for 'file_access'.";
360 const char kInvalidFileAccessValue[] =
361 "Invalid value for 'file_access[*]'.";
362 const char kInvalidFileBrowserHandler[] =
363 "Invalid value for 'file_browser_handlers'.";
364 const char kInvalidFileFiltersList[] =
365 "Invalid value for 'file_filters'.";
366 const char kInvalidFileFilterValue[] =
367 "Invalid value for 'file_filters[*]'.";
368 const char kInvalidFileHandlers[] =
369 "Invalid value for 'file_handlers'.";
370 const char kInvalidFileHandlersTooManyTypesAndExtensions[] =
371 "Too many MIME and extension file_handlers have been declared.";
372 const char kInvalidFileHandlerExtension[] =
373 "Invalid value for 'file_handlers[*].extensions'.";
374 const char kInvalidFileHandlerExtensionElement[] =
375 "Invalid value for 'file_handlers[*].extensions[*]'.";
376 const char kInvalidFileHandlerNoTypeOrExtension[] =
377 "'file_handlers[*]' must contain a non-empty 'types' or 'extensions'.";
378 const char kInvalidFileHandlerType[] =
379 "Invalid value for 'file_handlers[*].types'.";
380 const char kInvalidFileHandlerTypeElement[] =
381 "Invalid value for 'file_handlers[*].types[*]'.";
382 const char kInvalidGlob[] =
383 "Invalid value for 'content_scripts[*].*[*]'.";
384 const char kInvalidGlobList[] =
385 "Invalid value for 'content_scripts[*].*'.";
386 const char kInvalidHomepageOverrideURL[] =
387 "Invalid value for overriding homepage url: '[*]'.";
388 const char kInvalidHomepageURL[] =
389 "Invalid value for homepage url: '[*]'.";
390 const char kInvalidIconPath[] =
391 "Invalid value for 'icons[\"*\"]'.";
392 const char kInvalidIcons[] =
393 "Invalid value for 'icons'.";
394 const char kInvalidImport[] =
395 "Invalid value for 'import'.";
396 const char kInvalidImportAndExport[] =
397 "Simultaneous 'import' and 'export' are not allowed.";
398 const char kInvalidImportId[] =
399 "Invalid value for 'import[*].id'.";
400 const char kInvalidImportVersion[] =
401 "Invalid value for 'import[*].minimum_version'.";
402 const char kInvalidIncognitoBehavior[] =
403 "Invalid value for 'incognito'.";
404 const char kInvalidInputComponents[] =
405 "Invalid value for 'input_components'";
406 const char kInvalidInputComponentDescription[] =
407 "Invalid value for 'input_components[*].description";
408 const char kInvalidInputComponentLayoutName[] =
409 "Invalid value for 'input_components[*].layouts[*]";
410 const char kInvalidInputComponentName[] =
411 "Invalid value for 'input_components[*].name";
412 const char kInvalidInputComponentShortcutKey[] =
413 "Invalid value for 'input_components[*].shortcutKey";
414 const char kInvalidInputComponentShortcutKeycode[] =
415 "Invalid value for 'input_components[*].shortcutKey.keyCode";
416 const char kInvalidInputComponentType[] =
417 "Invalid value for 'input_components[*].type";
418 const char kInvalidInputView[] =
419 "Invalid value for 'input_view'.";
420 const char kInvalidIsolation[] =
421 "Invalid value for 'app.isolation'.";
422 const char kInvalidIsolationValue[] =
423 "Invalid value for 'app.isolation[*]'.";
424 const char kInvalidJs[] =
425 "Invalid value for 'content_scripts[*].js[*]'.";
426 const char kInvalidJsList[] =
427 "Required value 'content_scripts[*].js' is invalid.";
428 const char kInvalidKey[] =
429 "Value 'key' is missing or invalid.";
430 const char kInvalidKeyBinding[] =
431 "Invalid value for 'commands[*].*': *.";
432 const char kInvalidKeyBindingDescription[] =
433 "Invalid value for 'commands[*].description'.";
434 const char kInvalidKeyBindingDictionary[] =
435 "Contents of 'commands[*]' invalid.";
436 const char kInvalidKeyBindingMediaKeyWithModifier[] =
437 "Media key cannot have any modifier for 'commands[*].*': *.";
438 const char kInvalidKeyBindingMissingPlatform[] =
439 "Could not find key specification for 'command[*].*': Either specify a key "
440 "for '*', or specify a default key.";
441 const char kInvalidKeyBindingTooMany[] =
442 "Too many shortcuts specified for 'commands': The maximum is *.";
443 const char kInvalidKeyBindingUnknownPlatform[] =
444 "Unknown platform for 'command[*]': *. Valid values are: 'windows', 'mac'"
445 " 'chromeos', 'linux' and 'default'.";
446 const char kInvalidKioskEnabled[] =
447 "Invalid value for 'kiosk_enabled'.";
448 const char kInvalidKioskOnly[] =
449 "Invalid value for 'kiosk_only'.";
450 const char kInvalidKioskOnlyButNotEnabled[] =
451 "The 'kiosk_only' key is set, but 'kiosk_enabled' is not set.";
452 const char kInvalidLauncherPage[] = "Invalid value for 'launcher_page'.";
453 const char kInvalidLauncherPagePage[] =
454 "Invalid value for 'launcher_page.page'.";
455 const char kInvalidLaunchContainer[] =
456 "Invalid value for 'app.launch.container'.";
457 const char kInvalidLaunchValue[] =
458 "Invalid value for '*'.";
459 const char kInvalidLaunchValueContainer[] =
460 "Invalid container type for '*'.";
461 const char kInvalidManifest[] =
462 "Manifest file is invalid.";
463 const char kInvalidManifestVersion[] =
464 "Invalid value for 'manifest_version'. Must be an integer greater than "
465 "zero.";
466 const char kInvalidManifestVersionOld[] =
467 "The 'manifest_version' key must be present and set to * (without quotes). "
468 "See developer.chrome.com/*/manifestVersion.html for details.";
469 const char kInvalidMatch[] =
470 "Invalid value for 'content_scripts[*].matches[*]': *";
471 const char kInvalidMatchAboutBlank[] =
472 "Invalid value for 'content_scripts[*].match_about_blank'.";
473 const char kInvalidMatchCount[] =
474 "Invalid value for 'content_scripts[*].matches'. There must be at least "
475 "one match specified.";
476 const char kInvalidMatches[] =
477 "Required value 'content_scripts[*].matches' is missing or invalid.";
478 const char kInvalidMIMETypes[] =
479 "Invalid value for 'mime_types'";
480 const char kInvalidMimeTypesHandler[] =
481 "Invalid value for 'mime_types'.";
482 const char kInvalidMinimumChromeVersion[] =
483 "Invalid value for 'minimum_chrome_version'.";
484 const char kInvalidName[] =
485 "Required value 'name' is missing or invalid.";
486 const char kInvalidNaClModules[] =
487 "Invalid value for 'nacl_modules'.";
488 const char kInvalidNaClModulesPath[] =
489 "Invalid value for 'nacl_modules[*].path'.";
490 const char kInvalidNaClModulesMIMEType[] =
491 "Invalid value for 'nacl_modules[*].mime_type'.";
492 const char kInvalidOAuth2AutoApprove[] =
493 "Invalid value for 'oauth2.auto_approve'. Value must be true or false.";
494 const char kInvalidOAuth2ClientId[] =
495 "Invalid value for 'oauth2.client_id'.";
496 const char kInvalidOAuth2Scopes[] =
497 "Invalid value for 'oauth2.scopes'.";
498 const char kInvalidOfflineEnabled[] =
499 "Invalid value for 'offline_enabled'.";
500 const char kInvalidOmniboxKeyword[] =
501 "Invalid value for 'omnibox.keyword'.";
502 const char kInvalidOptionsPage[] = "Invalid value for '*'.";
503 const char kInvalidOptionsPageExpectUrlInPackage[] =
504 "Invalid value for 'options_page'. Value must be a relative path.";
505 const char kInvalidOptionsPageInHostedApp[] =
506 "Invalid value for 'options_page'. Hosted apps must specify an "
507 "absolute URL.";
508 const char kInvalidOptionsUIChromeStyle[] =
509 "Invalid value for 'options_ui.chrome_style'.";
510 const char kInvalidOptionsUIOpenInTab[] =
511 "Invalid value for 'options_ui.open_in_tab'.";
512 const char kInvalidPageAction[] =
513 "Invalid value for 'page_action'.";
514 const char kInvalidPageActionDefaultTitle[] =
515 "Invalid value for 'default_title'.";
516 const char kInvalidPageActionIconPath[] =
517 "Invalid value for 'page_action.default_icon'.";
518 const char kInvalidPageActionId[] =
519 "Required value 'id' is missing or invalid.";
520 const char kInvalidPageActionName[] =
521 "Invalid value for 'page_action.name'.";
522 const char kInvalidPageActionOldAndNewKeys[] =
523 "Key \"*\" is deprecated. Key \"*\" has the same meaning. You can not "
524 "use both.";
525 const char kInvalidPageActionPopup[] =
526 "Invalid type for page action popup.";
527 const char kInvalidPageActionPopupPath[] =
528 "Invalid value for page action popup path [*].";
529 const char kInvalidPermissionWithDetail[] =
530 "Invalid value for 'permissions[*]': *.";
531 const char kInvalidPermission[] =
532 "Invalid value for 'permissions[*]'.";
533 const char kInvalidPermissions[] =
534 "Invalid value for 'permissions'.";
535 const char kInvalidPermissionScheme[] =
536 "Invalid scheme for 'permissions[*]'.";
537 const char kInvalidPlugins[] =
538 "Invalid value for 'plugins'.";
539 const char kInvalidPluginsPath[] =
540 "Invalid value for 'plugins[*].path'.";
541 const char kInvalidPluginsPublic[] =
542 "Invalid value for 'plugins[*].public'.";
543 const char kInvalidRequirement[] =
544 "Invalid value for requirement \"*\"";
545 const char kInvalidRequirements[] =
546 "Invalid value for 'requirements'";
547 const char kInvalidRunAt[] =
548 "Invalid value for 'content_scripts[*].run_at'.";
549 const char kInvalidSandboxedPagesList[] =
550 "Invalid value for 'sandbox.pages'.";
551 const char kInvalidSandboxedPage[] =
552 "Invalid value for 'sandbox.pages[*]'.";
553 const char kInvalidSandboxedPagesCSP[] =
554 "Invalid value for 'sandbox.content_security_policy'.";
555 const char kInvalidSearchEngineMissingKeys[] =
556 "Missing mandatory parameters for "
557 "'chrome_settings_overrides.search_provider'.";
558 const char kInvalidSearchEngineURL[] =
559 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'.";
560 const char kInvalidShortName[] =
561 "Invalid value for 'short_name'.";
562 const char kInvalidSignature[] =
563 "Value 'signature' is missing or invalid.";
564 const char kInvalidSpellcheck[] =
565 "Invalid value for 'spellcheck'.";
566 const char kInvalidSpellcheckDictionaryFormat[] =
567 "Invalid value for spellcheck dictionary format.";
568 const char kInvalidSpellcheckDictionaryLanguage[] =
569 "Invalid value for spellcheck dictionary language.";
570 const char kInvalidSpellcheckDictionaryLocale[] =
571 "Invalid value for spellcheck dictionary locale.";
572 const char kInvalidSpellcheckDictionaryPath[] =
573 "Invalid value for spellcheck dictionary path.";
574 const char kInvalidStartupOverrideURL[] =
575 "Invalid value for overriding startup URL: '[*]'.";
576 const char kInvalidSystemIndicator[] =
577 "Invalid value for 'system_indicator'.";
578 const char kInvalidTheme[] =
579 "Invalid value for 'theme'.";
580 const char kInvalidThemeColors[] =
581 "Invalid value for theme colors - colors must be integers";
582 const char kInvalidThemeImages[] =
583 "Invalid value for theme images - images must be strings.";
584 const char kInvalidThemeImagesMissing[] =
585 "An image specified in the theme is missing.";
586 const char kInvalidThemeTints[] =
587 "Invalid value for theme images - tints must be decimal numbers.";
588 const char kInvalidTts[] =
589 "Invalid value for 'tts_engine'.";
590 const char kInvalidTtsVoices[] =
591 "Invalid value for 'tts_engine.voices'.";
592 const char kInvalidTtsVoicesEventTypes[] =
593 "Invalid value for 'tts_engine.voices[*].event_types'.";
594 const char kInvalidTtsVoicesGender[] =
595 "Invalid value for 'tts_engine.voices[*].gender'.";
596 const char kInvalidTtsVoicesLang[] =
597 "Invalid value for 'tts_engine.voices[*].lang'.";
598 const char kInvalidTtsVoicesRemote[] =
599 "Invalid value for 'tts_engine.voices[*].remote'.";
600 const char kInvalidTtsVoicesVoiceName[] =
601 "Invalid value for 'tts_engine.voices[*].voice_name'.";
602 const char kInvalidUpdateURL[] =
603 "Invalid value for update url: '[*]'.";
604 const char kInvalidURLHandlers[] =
605 "Invalid value for 'url_handlers'.";
606 const char kInvalidURLHandlerPatternElement[] =
607 "Invalid value for 'url_handlers[*]'.";
608 const char kInvalidURLHandlerTitle[] =
609 "Invalid value for 'url_handlers[*].title'.";
610 const char kInvalidURLHandlerPattern[] =
611 "Invalid value for 'url_handlers[*].matches[*]'.";
612 const char kInvalidURLPatternError[] =
613 "Invalid url pattern '*'";
614 const char kInvalidVersion[] =
615 "Required value 'version' is missing or invalid. It must be between 1-4 "
616 "dot-separated integers each between 0 and 65536.";
617 const char kInvalidVersionName[] = "Invalid value for 'version_name'.";
618 const char kInvalidWebAccessibleResourcesList[] =
619 "Invalid value for 'web_accessible_resources'.";
620 const char kInvalidWebAccessibleResource[] =
621 "Invalid value for 'web_accessible_resources[*]'.";
622 const char kInvalidWebview[] =
623 "Invalid value for 'webview'.";
624 const char kInvalidWebviewAccessibleResourcesList[] =
625 "Invalid value for'webview.accessible_resources'.";
626 const char kInvalidWebviewAccessibleResource[] =
627 "Invalid value for 'webview.accessible_resources[*]'.";
628 const char kInvalidWebviewPartition[] =
629 "Invalid value for 'webview.partitions[*]'.";
630 const char kInvalidWebviewPartitionName[] =
631 "Invalid value for 'webview.partitions[*].name'.";
632 const char kInvalidWebviewPartitionsList[] =
633 "Invalid value for 'webview.partitions'.";
634 const char kInvalidWebURL[] =
635 "Invalid value for 'app.urls[*]': *";
636 const char kInvalidWebURLs[] =
637 "Invalid value for 'app.urls'.";
638 const char kInvalidZipHash[] =
639 "Required key 'zip_hash' is missing or invalid.";
640 const char kKeyIsDeprecatedWithReplacement[] =
641 "Key \"*\" is deprecated. Key \"*\" should be used instead.";
642 const char kLauncherPagePageRequired[] =
643 "The 'launcher_page.page' key is required.";
644 const char kLaunchPathAndExtentAreExclusive[] =
645 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
646 const char kLaunchPathAndURLAreExclusive[] =
647 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot "
648 "both be set.";
649 const char kLaunchURLRequired[] =
650 "Either 'app.launch.local_path' or 'app.launch.web_url' is required.";
651 const char kLocalesInvalidLocale[] =
652 "Invalid locale file '*': *";
653 const char kLocalesMessagesFileMissing[] =
654 "Messages file is missing for locale.";
655 const char kLocalesNoDefaultLocaleSpecified[] =
656 "Localization used, but default_locale wasn't specified in the manifest.";
657 const char kLocalesNoDefaultMessages[] =
658 "Default locale is defined but default data couldn't be loaded.";
659 const char kLocalesNoValidLocaleNamesListed[] =
660 "No valid locale name could be found in _locales directory.";
661 const char kLocalesTreeMissing[] =
662 "Default locale was specified, but _locales subtree is missing.";
663 const char kManifestParseError[] =
664 "Manifest is not valid JSON.";
665 const char kManifestUnreadable[] =
666 "Manifest file is missing or unreadable.";
667 const char kMissingFile[] =
668 "At least one js or css file is required for 'content_scripts[*]'.";
669 const char kMultipleOverrides[] =
670 "An extension cannot override more than one page.";
671 const char kNoPermissionForMIMETypes[] =
672 "The extension is not allowed to use mime_types key.";
673 const char kNoWildCardsInPaths[] =
674 "Wildcards are not allowed in extent URL pattern paths.";
675 const char kOneUISurfaceOnly[] =
676 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
677 const char kPermissionMustBeOptional[] =
678 "Permission '*' must be specified in the optional section of the manifest.";
679 const char kPermissionNotAllowed[] =
680 "Access to permission '*' denied.";
681 const char kPermissionNotAllowedInManifest[] =
682 "Permission '*' cannot be specified in the manifest.";
683 const char kPermissionUnknownOrMalformed[] =
684 "Permission '*' is unknown or URL pattern is malformed.";
685 const char kReservedMessageFound[] =
686 "Reserved key * found in message catalog.";
687 const char kUnrecognizedManifestKey[] = "Unrecognized manifest key '*'.";
688 const char kUnrecognizedManifestProperty[] =
689 "Unrecognized property '*' of manifest key '*'.";
690 const char kWebRequestConflictsWithLazyBackground[] =
691 "The 'webRequest' API cannot be used with event pages.";
692 #if defined(OS_CHROMEOS)
693 const char kIllegalPlugins[] =
694 "Extensions cannot install plugins on Chrome OS";
695 #endif
697 } // namespace manifest_errors
699 } // namespace extensions