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"
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 kContentScripts
[] = "content_scripts";
29 const char kContentSecurityPolicy
[] = "content_security_policy";
30 const char kConvertedFromUserScript
[] = "converted_from_user_script";
31 const char kCopresence
[] = "copresence";
32 const char kCss
[] = "css";
33 const char kCtrlKey
[] = "ctrlKey";
34 const char kCurrentLocale
[] = "current_locale";
35 const char kDefaultLocale
[] = "default_locale";
36 const char kDescription
[] = "description";
37 const char kDevToolsPage
[] = "devtools_page";
38 const char kDisplayInLauncher
[] = "display_in_launcher";
39 const char kDisplayInNewTabPage
[] = "display_in_new_tab_page";
40 const char kEventName
[] = "event_name";
41 const char kExcludeGlobs
[] = "exclude_globs";
42 const char kExcludeMatches
[] = "exclude_matches";
43 const char kExport
[] = "export";
44 const char kExternallyConnectable
[] = "externally_connectable";
45 const char kEventRules
[] = "event_rules";
46 const char kFileAccessList
[] = "file_access";
47 const char kFileFilters
[] = "file_filters";
48 const char kFileBrowserHandlers
[] = "file_browser_handlers";
49 const char kFileHandlers
[] = "file_handlers";
50 const char kFileHandlerExtensions
[] = "extensions";
51 const char kFileHandlerTypes
[] = "types";
52 const char kGlobal
[] = "global";
53 const char kHideBookmarkButton
[] = "hide_bookmark_button";
54 const char kHomepageURL
[] = "homepage_url";
55 const char kIcons
[] = "icons";
56 const char kId
[] = "id";
57 const char kImeOptionsPage
[] = "options_page";
58 const char kImport
[] = "import";
59 const char kIncognito
[] = "incognito";
60 const char kIncludeGlobs
[] = "include_globs";
61 const char kIndicator
[] = "indicator";
62 const char kInputComponents
[] = "input_components";
63 const char kInputView
[] = "input_view";
64 const char kIsolation
[] = "app.isolation";
65 const char kJs
[] = "js";
66 const char kKey
[] = "key";
67 const char kKeycode
[] = "keyCode";
68 const char kKioskEnabled
[] = "kiosk_enabled";
69 const char kKioskOnly
[] = "kiosk_only";
70 const char kKioskMode
[] = "kiosk_mode";
71 const char kKioskSecondaryApps
[] = "kiosk_secondary_apps";
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";
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
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' "
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 "
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 kInvalidContentScript
[] =
325 "Invalid value for 'content_scripts[*]'.";
326 const char kInvalidContentScriptsList
[] =
327 "Invalid value for 'content_scripts'.";
328 const char kInvalidContentSecurityPolicy
[] =
329 "Invalid value for 'content_security_policy'.";
330 const char kInvalidCopresenceConfig
[] = "Invalid value for 'copresence'.";
331 const char kInvalidCopresenceApiKey
[] =
332 "copresence.api_key must not be empty.";
333 const char kInvalidCSPInsecureValue
[] =
334 "Ignored insecure CSP value \"*\" in directive '*'.";
335 const char kInvalidCSPMissingSecureSrc
[] =
336 "CSP directive '*' must be specified (either explicitly, or implicitly via"
337 " 'default-src') and must whitelist only secure resources.";
338 const char kInvalidCss
[] =
339 "Invalid value for 'content_scripts[*].css[*]'.";
340 const char kInvalidCssList
[] =
341 "Required value 'content_scripts[*].css' is invalid.";
342 const char kInvalidDefaultLocale
[] =
343 "Invalid value for default locale - locale name must be a string.";
344 const char kInvalidDescription
[] =
345 "Invalid value for 'description'.";
346 const char kInvalidDevToolsPage
[] =
347 "Invalid value for 'devtools_page'.";
348 const char kInvalidDisplayInLauncher
[] =
349 "Invalid value for 'display_in_launcher'.";
350 const char kInvalidDisplayInNewTabPage
[] =
351 "Invalid value for 'display_in_new_tab_page'.";
352 const char kInvalidEmptyDictionary
[] = "Empty dictionary for '*'.";
353 const char kInvalidExcludeMatch
[] =
354 "Invalid value for 'content_scripts[*].exclude_matches[*]': *";
355 const char kInvalidExcludeMatches
[] =
356 "Invalid value for 'content_scripts[*].exclude_matches'.";
357 const char kInvalidExport
[] =
358 "Invalid value for 'export'.";
359 const char kInvalidExportPermissions
[] =
360 "Permissions are not allowed for extensions that export resources.";
361 const char kInvalidExportWhitelist
[] =
362 "Invalid value for 'export.whitelist'.";
363 const char kInvalidExportWhitelistString
[] =
364 "Invalid value for 'export.whitelist[*]'.";
365 const char kInvalidFileAccessList
[] =
366 "Invalid value for 'file_access'.";
367 const char kInvalidFileAccessValue
[] =
368 "Invalid value for 'file_access[*]'.";
369 const char kInvalidFileBrowserHandler
[] =
370 "Invalid value for 'file_browser_handlers'.";
371 const char kInvalidFileBrowserHandlerMissingPermission
[] =
372 "Declaring file browser handlers requires the fileBrowserHandler manifest "
374 const char kInvalidFileFiltersList
[] =
375 "Invalid value for 'file_filters'.";
376 const char kInvalidFileFilterValue
[] =
377 "Invalid value for 'file_filters[*]'.";
378 const char kInvalidFileHandlers
[] =
379 "Invalid value for 'file_handlers'.";
380 const char kInvalidFileHandlersTooManyTypesAndExtensions
[] =
381 "Too many MIME and extension file_handlers have been declared.";
382 const char kInvalidFileHandlerExtension
[] =
383 "Invalid value for 'file_handlers[*].extensions'.";
384 const char kInvalidFileHandlerExtensionElement
[] =
385 "Invalid value for 'file_handlers[*].extensions[*]'.";
386 const char kInvalidFileHandlerNoTypeOrExtension
[] =
387 "'file_handlers[*]' must contain a non-empty 'types' or 'extensions'.";
388 const char kInvalidFileHandlerType
[] =
389 "Invalid value for 'file_handlers[*].types'.";
390 const char kInvalidFileHandlerTypeElement
[] =
391 "Invalid value for 'file_handlers[*].types[*]'.";
392 const char kInvalidGlob
[] =
393 "Invalid value for 'content_scripts[*].*[*]'.";
394 const char kInvalidGlobList
[] =
395 "Invalid value for 'content_scripts[*].*'.";
396 const char kInvalidHomepageOverrideURL
[] =
397 "Invalid value for overriding homepage url: '[*]'.";
398 const char kInvalidHomepageURL
[] =
399 "Invalid value for homepage url: '[*]'.";
400 const char kInvalidIconPath
[] =
401 "Invalid value for 'icons[\"*\"]'.";
402 const char kInvalidIcons
[] =
403 "Invalid value for 'icons'.";
404 const char kInvalidImport
[] =
405 "Invalid value for 'import'.";
406 const char kInvalidImportAndExport
[] =
407 "Simultaneous 'import' and 'export' are not allowed.";
408 const char kInvalidImportId
[] =
409 "Invalid value for 'import[*].id'.";
410 const char kInvalidImportVersion
[] =
411 "Invalid value for 'import[*].minimum_version'.";
412 const char kInvalidIncognitoBehavior
[] =
413 "Invalid value for 'incognito'.";
414 const char kInvalidInputComponents
[] =
415 "Invalid value for 'input_components'";
416 const char kInvalidInputComponentDescription
[] =
417 "Invalid value for 'input_components[*].description";
418 const char kInvalidInputComponentLayoutName
[] =
419 "Invalid value for 'input_components[*].layouts[*]";
420 const char kInvalidInputComponentName
[] =
421 "Invalid value for 'input_components[*].name";
422 const char kInvalidInputComponentShortcutKey
[] =
423 "Invalid value for 'input_components[*].shortcutKey";
424 const char kInvalidInputComponentShortcutKeycode
[] =
425 "Invalid value for 'input_components[*].shortcutKey.keyCode";
426 const char kInvalidInputComponentType
[] =
427 "Invalid value for 'input_components[*].type";
428 const char kInvalidInputView
[] =
429 "Invalid value for 'input_view'.";
430 const char kInvalidIsolation
[] =
431 "Invalid value for 'app.isolation'.";
432 const char kInvalidIsolationValue
[] =
433 "Invalid value for 'app.isolation[*]'.";
434 const char kInvalidJs
[] =
435 "Invalid value for 'content_scripts[*].js[*]'.";
436 const char kInvalidJsList
[] =
437 "Required value 'content_scripts[*].js' is invalid.";
438 const char kInvalidKey
[] =
439 "Value 'key' is missing or invalid.";
440 const char kInvalidKeyBinding
[] =
441 "Invalid value for 'commands[*].*': *.";
442 const char kInvalidKeyBindingDescription
[] =
443 "Invalid value for 'commands[*].description'.";
444 const char kInvalidKeyBindingDictionary
[] =
445 "Contents of 'commands[*]' invalid.";
446 const char kInvalidKeyBindingMediaKeyWithModifier
[] =
447 "Media key cannot have any modifier for 'commands[*].*': *.";
448 const char kInvalidKeyBindingMissingPlatform
[] =
449 "Could not find key specification for 'command[*].*': Either specify a key "
450 "for '*', or specify a default key.";
451 const char kInvalidKeyBindingTooMany
[] =
452 "Too many shortcuts specified for 'commands': The maximum is *.";
453 const char kInvalidKeyBindingUnknownPlatform
[] =
454 "Unknown platform for 'command[*]': *. Valid values are: 'windows', 'mac'"
455 " 'chromeos', 'linux' and 'default'.";
456 const char kInvalidKioskEnabled
[] =
457 "Invalid value for 'kiosk_enabled'.";
458 const char kInvalidKioskOnly
[] =
459 "Invalid value for 'kiosk_only'.";
460 const char kInvalidKioskOnlyButNotEnabled
[] =
461 "The 'kiosk_only' key is set, but 'kiosk_enabled' is not set.";
462 const char kInvalidKioskSecondaryApps
[] =
463 "Invalid value for 'kiosk_secondary_apps'";
464 const char kInvalidKioskSecondaryAppsBadAppEntry
[] =
465 "Invalid app id item for 'kiosk_secondary_apps'";
466 const char kInvalidKioskSecondaryAppsBadAppId
[] =
467 "Invalid app id value for 'kiosk_secondary_apps'";
468 const char kInvalidLauncherPage
[] = "Invalid value for 'launcher_page'.";
469 const char kInvalidLauncherPagePage
[] =
470 "Invalid value for 'launcher_page.page'.";
471 const char kInvalidLaunchContainer
[] =
472 "Invalid value for 'app.launch.container'.";
473 const char kInvalidLaunchValue
[] =
474 "Invalid value for '*'.";
475 const char kInvalidLaunchValueContainer
[] =
476 "Invalid container type for '*'.";
477 const char kInvalidLinkedAppIcon
[] =
478 "Invalid linked app icon. Must be a dictionary";
479 const char kInvalidLinkedAppIconSize
[] =
480 "Invalid 'size' for linked app icon. Must be an integer";
481 const char kInvalidLinkedAppIconURL
[] =
482 "Invalid 'url' for linked app icon. Must be a string that is a valid URL";
483 const char kInvalidLinkedAppIcons
[] =
484 "Invalid 'app.linked_icons'. Must be an array";
485 const char kInvalidManifest
[] =
486 "Manifest file is invalid.";
487 const char kInvalidManifestVersion
[] =
488 "Invalid value for 'manifest_version'. Must be an integer greater than "
490 const char kInvalidManifestVersionOld
[] =
491 "The 'manifest_version' key must be present and set to * (without quotes). "
492 "See developer.chrome.com/*/manifestVersion.html for details.";
493 const char kInvalidMatch
[] =
494 "Invalid value for 'content_scripts[*].matches[*]': *";
495 const char kInvalidMatchAboutBlank
[] =
496 "Invalid value for 'content_scripts[*].match_about_blank'.";
497 const char kInvalidMatchCount
[] =
498 "Invalid value for 'content_scripts[*].matches'. There must be at least "
499 "one match specified.";
500 const char kInvalidMatches
[] =
501 "Required value 'content_scripts[*].matches' is missing or invalid.";
502 const char kInvalidMIMETypes
[] =
503 "Invalid value for 'mime_types'";
504 const char kInvalidMimeTypesHandler
[] =
505 "Invalid value for 'mime_types'.";
506 const char kInvalidMinimumChromeVersion
[] =
507 "Invalid value for 'minimum_chrome_version'.";
508 const char kInvalidName
[] =
509 "Required value 'name' is missing or invalid.";
510 const char kInvalidNaClModules
[] =
511 "Invalid value for 'nacl_modules'.";
512 const char kInvalidNaClModulesPath
[] =
513 "Invalid value for 'nacl_modules[*].path'.";
514 const char kInvalidNaClModulesMIMEType
[] =
515 "Invalid value for 'nacl_modules[*].mime_type'.";
516 const char kInvalidOAuth2AutoApprove
[] =
517 "Invalid value for 'oauth2.auto_approve'. Value must be true or false.";
518 const char kInvalidOAuth2ClientId
[] =
519 "Invalid value for 'oauth2.client_id'.";
520 const char kInvalidOAuth2Scopes
[] =
521 "Invalid value for 'oauth2.scopes'.";
522 const char kInvalidOfflineEnabled
[] =
523 "Invalid value for 'offline_enabled'.";
524 const char kInvalidOmniboxKeyword
[] =
525 "Invalid value for 'omnibox.keyword'.";
526 const char kInvalidOptionsPage
[] = "Invalid value for '*'.";
527 const char kInvalidOptionsPageExpectUrlInPackage
[] =
528 "Invalid value for 'options_page'. Value must be a relative path.";
529 const char kInvalidOptionsPageInHostedApp
[] =
530 "Invalid value for 'options_page'. Hosted apps must specify an "
532 const char kInvalidOptionsUIChromeStyle
[] =
533 "Invalid value for 'options_ui.chrome_style'.";
534 const char kInvalidOptionsUIOpenInTab
[] =
535 "Invalid value for 'options_ui.open_in_tab'.";
536 const char kInvalidPageAction
[] =
537 "Invalid value for 'page_action'.";
538 const char kInvalidPageActionDefaultTitle
[] =
539 "Invalid value for 'default_title'.";
540 const char kInvalidPageActionIconPath
[] =
541 "Invalid value for 'page_action.default_icon'.";
542 const char kInvalidPageActionId
[] =
543 "Required value 'id' is missing or invalid.";
544 const char kInvalidPageActionName
[] =
545 "Invalid value for 'page_action.name'.";
546 const char kInvalidPageActionOldAndNewKeys
[] =
547 "Key \"*\" is deprecated. Key \"*\" has the same meaning. You can not "
549 const char kInvalidPageActionPopup
[] =
550 "Invalid type for page action popup.";
551 const char kInvalidPageActionPopupPath
[] =
552 "Invalid value for page action popup path [*].";
553 const char kInvalidPermissionWithDetail
[] =
554 "Invalid value for 'permissions[*]': *.";
555 const char kInvalidPermission
[] =
556 "Invalid value for 'permissions[*]'.";
557 const char kInvalidPermissions
[] =
558 "Invalid value for 'permissions'.";
559 const char kInvalidPermissionScheme
[] =
560 "Invalid scheme for 'permissions[*]'.";
561 const char kInvalidPlugins
[] =
562 "Invalid value for 'plugins'.";
563 const char kInvalidPluginsPath
[] =
564 "Invalid value for 'plugins[*].path'.";
565 const char kInvalidPluginsPublic
[] =
566 "Invalid value for 'plugins[*].public'.";
567 const char kInvalidRequirement
[] =
568 "Invalid value for requirement \"*\"";
569 const char kInvalidRequirements
[] =
570 "Invalid value for 'requirements'";
571 const char kInvalidRunAt
[] =
572 "Invalid value for 'content_scripts[*].run_at'.";
573 const char kInvalidSandboxedPagesList
[] =
574 "Invalid value for 'sandbox.pages'.";
575 const char kInvalidSandboxedPage
[] =
576 "Invalid value for 'sandbox.pages[*]'.";
577 const char kInvalidSandboxedPagesCSP
[] =
578 "Invalid value for 'sandbox.content_security_policy'.";
579 const char kInvalidSearchEngineMissingKeys
[] =
580 "Missing mandatory parameters for "
581 "'chrome_settings_overrides.search_provider'.";
582 const char kInvalidSearchEngineURL
[] =
583 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'.";
584 const char kInvalidShortName
[] =
585 "Invalid value for 'short_name'.";
586 const char kInvalidSignature
[] =
587 "Value 'signature' is missing or invalid.";
588 const char kInvalidSpellcheck
[] =
589 "Invalid value for 'spellcheck'.";
590 const char kInvalidSpellcheckDictionaryFormat
[] =
591 "Invalid value for spellcheck dictionary format.";
592 const char kInvalidSpellcheckDictionaryLanguage
[] =
593 "Invalid value for spellcheck dictionary language.";
594 const char kInvalidSpellcheckDictionaryLocale
[] =
595 "Invalid value for spellcheck dictionary locale.";
596 const char kInvalidSpellcheckDictionaryPath
[] =
597 "Invalid value for spellcheck dictionary path.";
598 const char kInvalidStartupOverrideURL
[] =
599 "Invalid value for overriding startup URL: '[*]'.";
600 const char kInvalidSystemIndicator
[] =
601 "Invalid value for 'system_indicator'.";
602 const char kInvalidTheme
[] =
603 "Invalid value for 'theme'.";
604 const char kInvalidThemeColors
[] =
605 "Invalid value for theme colors - colors must be integers";
606 const char kInvalidThemeImages
[] =
607 "Invalid value for theme images - images must be strings.";
608 const char kInvalidThemeImagesMissing
[] =
609 "An image specified in the theme is missing.";
610 const char kInvalidThemeTints
[] =
611 "Invalid value for theme images - tints must be decimal numbers.";
612 const char kInvalidTts
[] =
613 "Invalid value for 'tts_engine'.";
614 const char kInvalidTtsVoices
[] =
615 "Invalid value for 'tts_engine.voices'.";
616 const char kInvalidTtsVoicesEventTypes
[] =
617 "Invalid value for 'tts_engine.voices[*].event_types'.";
618 const char kInvalidTtsVoicesGender
[] =
619 "Invalid value for 'tts_engine.voices[*].gender'.";
620 const char kInvalidTtsVoicesLang
[] =
621 "Invalid value for 'tts_engine.voices[*].lang'.";
622 const char kInvalidTtsVoicesRemote
[] =
623 "Invalid value for 'tts_engine.voices[*].remote'.";
624 const char kInvalidTtsVoicesVoiceName
[] =
625 "Invalid value for 'tts_engine.voices[*].voice_name'.";
626 const char kInvalidUpdateURL
[] =
627 "Invalid value for update url: '[*]'.";
628 const char kInvalidURLHandlers
[] =
629 "Invalid value for 'url_handlers'.";
630 const char kInvalidURLHandlerPatternElement
[] =
631 "Invalid value for 'url_handlers[*]'.";
632 const char kInvalidURLHandlerTitle
[] =
633 "Invalid value for 'url_handlers[*].title'.";
634 const char kInvalidURLHandlerPattern
[] =
635 "Invalid value for 'url_handlers[*].matches[*]'.";
636 const char kInvalidURLPatternError
[] =
637 "Invalid url pattern '*'";
638 const char kInvalidVersion
[] =
639 "Required value 'version' is missing or invalid. It must be between 1-4 "
640 "dot-separated integers each between 0 and 65536.";
641 const char kInvalidVersionName
[] = "Invalid value for 'version_name'.";
642 const char kInvalidWebAccessibleResourcesList
[] =
643 "Invalid value for 'web_accessible_resources'.";
644 const char kInvalidWebAccessibleResource
[] =
645 "Invalid value for 'web_accessible_resources[*]'.";
646 const char kInvalidWebview
[] =
647 "Invalid value for 'webview'.";
648 const char kInvalidWebviewAccessibleResourcesList
[] =
649 "Invalid value for'webview.accessible_resources'.";
650 const char kInvalidWebviewAccessibleResource
[] =
651 "Invalid value for 'webview.accessible_resources[*]'.";
652 const char kInvalidWebviewPartition
[] =
653 "Invalid value for 'webview.partitions[*]'.";
654 const char kInvalidWebviewPartitionName
[] =
655 "Invalid value for 'webview.partitions[*].name'.";
656 const char kInvalidWebviewPartitionsList
[] =
657 "Invalid value for 'webview.partitions'.";
658 const char kInvalidWebURL
[] =
659 "Invalid value for 'app.urls[*]': *";
660 const char kInvalidWebURLs
[] =
661 "Invalid value for 'app.urls'.";
662 const char kInvalidZipHash
[] =
663 "Required key 'zip_hash' is missing or invalid.";
664 const char kKeyIsDeprecatedWithReplacement
[] =
665 "Key \"*\" is deprecated. Key \"*\" should be used instead.";
666 const char kLauncherPagePageRequired
[] =
667 "The 'launcher_page.page' key is required.";
668 const char kLaunchPathAndExtentAreExclusive
[] =
669 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
670 const char kLaunchPathAndURLAreExclusive
[] =
671 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot "
673 const char kLaunchURLRequired
[] =
674 "Either 'app.launch.local_path' or 'app.launch.web_url' is required.";
675 const char kLocalesInvalidLocale
[] =
676 "Invalid locale file '*': *";
677 const char kLocalesMessagesFileMissing
[] =
678 "Messages file is missing for locale.";
679 const char kLocalesNoDefaultLocaleSpecified
[] =
680 "Localization used, but default_locale wasn't specified in the manifest.";
681 const char kLocalesNoDefaultMessages
[] =
682 "Default locale is defined but default data couldn't be loaded.";
683 const char kLocalesNoValidLocaleNamesListed
[] =
684 "No valid locale name could be found in _locales directory.";
685 const char kLocalesTreeMissing
[] =
686 "Default locale was specified, but _locales subtree is missing.";
687 const char kManifestParseError
[] =
688 "Manifest is not valid JSON.";
689 const char kManifestUnreadable
[] =
690 "Manifest file is missing or unreadable.";
691 const char kMissingFile
[] =
692 "At least one js or css file is required for 'content_scripts[*]'.";
693 const char kMultipleOverrides
[] =
694 "An extension cannot override more than one page.";
695 const char kNoPermissionForMIMETypes
[] =
696 "The extension is not allowed to use mime_types key.";
697 const char kNoWildCardsInPaths
[] =
698 "Wildcards are not allowed in extent URL pattern paths.";
699 const char kOneUISurfaceOnly
[] =
700 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
701 const char kPermissionMustBeOptional
[] =
702 "Permission '*' must be specified in the optional section of the manifest.";
703 const char kPermissionNotAllowed
[] =
704 "Access to permission '*' denied.";
705 const char kPermissionNotAllowedInManifest
[] =
706 "Permission '*' cannot be specified in the manifest.";
707 const char kPermissionUnknownOrMalformed
[] =
708 "Permission '*' is unknown or URL pattern is malformed.";
709 const char kReservedMessageFound
[] =
710 "Reserved key * found in message catalog.";
711 const char kUnrecognizedManifestKey
[] = "Unrecognized manifest key '*'.";
712 const char kUnrecognizedManifestProperty
[] =
713 "Unrecognized property '*' of manifest key '*'.";
714 const char kWebRequestConflictsWithLazyBackground
[] =
715 "The 'webRequest' API cannot be used with event pages.";
716 #if defined(OS_CHROMEOS)
717 const char kIllegalPlugins
[] =
718 "Extensions cannot install plugins on Chrome OS.";
719 const char kInvalidFileSystemProviderMissingCapabilities
[] =
720 "The 'fileSystemProvider' permission requires the "
721 "'file_system_provider_capabilities' section to be specified in the "
723 const char kInvalidFileSystemProviderMissingPermission
[] =
724 "The 'file_system_provider_capabilities' section requires the "
725 "'fileSystemProvider' permission to be specified in the manifest.";
728 } // namespace manifest_errors
730 } // namespace extensions