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