| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/manifest_constants.h" | 5 #include "extensions/common/manifest_constants.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 namespace manifest_keys { | 9 namespace manifest_keys { |
| 10 | 10 |
| 11 const char kAllFrames[] = "all_frames"; | 11 const char kAllFrames[] = "all_frames"; |
| 12 const char kAltKey[] = "altKey"; | 12 const char kAltKey[] = "altKey"; |
| 13 const char kApp[] = "app"; | 13 const char kApp[] = "app"; |
| 14 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; | 14 const char kBackgroundAllowJsAccess[] = "background.allow_js_access"; |
| 15 const char kBackgroundPage[] = "background.page"; | 15 const char kBackgroundPage[] = "background.page"; |
| 16 const char kBackgroundPageLegacy[] = "background_page"; | 16 const char kBackgroundPageLegacy[] = "background_page"; |
| 17 const char kBackgroundPersistent[] = "background.persistent"; | 17 const char kBackgroundPersistent[] = "background.persistent"; |
| 18 const char kBackgroundScripts[] = "background.scripts"; | 18 const char kBackgroundScripts[] = "background.scripts"; |
| 19 const char kBluetooth[] = "bluetooth"; | 19 const char kBluetooth[] = "bluetooth"; |
| 20 const char kBookmarkUI[] = "chrome_settings_overrides.bookmarks_ui"; | 20 const char kBookmarkUI[] = "chrome_ui_overrides.bookmarks_ui"; |
| 21 const char kBrowserAction[] = "browser_action"; | 21 const char kBrowserAction[] = "browser_action"; |
| 22 const char kChromeURLOverrides[] = "chrome_url_overrides"; | 22 const char kChromeURLOverrides[] = "chrome_url_overrides"; |
| 23 const char kCommands[] = "commands"; | 23 const char kCommands[] = "commands"; |
| 24 const char kContentPack[] = "content_pack"; | 24 const char kContentPack[] = "content_pack"; |
| 25 const char kContentPackSites[] = "sites"; | 25 const char kContentPackSites[] = "sites"; |
| 26 const char kContentScripts[] = "content_scripts"; | 26 const char kContentScripts[] = "content_scripts"; |
| 27 const char kContentSecurityPolicy[] = "content_security_policy"; | 27 const char kContentSecurityPolicy[] = "content_security_policy"; |
| 28 const char kConvertedFromUserScript[] = "converted_from_user_script"; | 28 const char kConvertedFromUserScript[] = "converted_from_user_script"; |
| 29 const char kCss[] = "css"; | 29 const char kCss[] = "css"; |
| 30 const char kCtrlKey[] = "ctrlKey"; | 30 const char kCtrlKey[] = "ctrlKey"; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 const char kTtsVoicesEventTypeMarker[] = "marker"; | 150 const char kTtsVoicesEventTypeMarker[] = "marker"; |
| 151 const char kTtsVoicesEventTypeSentence[] = "sentence"; | 151 const char kTtsVoicesEventTypeSentence[] = "sentence"; |
| 152 const char kTtsVoicesEventTypeStart[] = "start"; | 152 const char kTtsVoicesEventTypeStart[] = "start"; |
| 153 const char kTtsVoicesEventTypeWord[] = "word"; | 153 const char kTtsVoicesEventTypeWord[] = "word"; |
| 154 const char kTtsVoicesEventTypes[] = "event_types"; | 154 const char kTtsVoicesEventTypes[] = "event_types"; |
| 155 const char kTtsVoicesGender[] = "gender"; | 155 const char kTtsVoicesGender[] = "gender"; |
| 156 const char kTtsVoicesLang[] = "lang"; | 156 const char kTtsVoicesLang[] = "lang"; |
| 157 const char kTtsVoicesRemote[] = "remote"; | 157 const char kTtsVoicesRemote[] = "remote"; |
| 158 const char kTtsVoicesVoiceName[] = "voice_name"; | 158 const char kTtsVoicesVoiceName[] = "voice_name"; |
| 159 const char kType[] = "type"; | 159 const char kType[] = "type"; |
| 160 const char kUIOverride[] = "chrome_ui_overrides"; |
| 160 const char kUpdateURL[] = "update_url"; | 161 const char kUpdateURL[] = "update_url"; |
| 161 const char kUrlHandlers[] = "url_handlers"; | 162 const char kUrlHandlers[] = "url_handlers"; |
| 162 const char kUrlHandlerTitle[] = "title"; | 163 const char kUrlHandlerTitle[] = "title"; |
| 163 const char kVersion[] = "version"; | 164 const char kVersion[] = "version"; |
| 164 const char kWebAccessibleResources[] = "web_accessible_resources"; | 165 const char kWebAccessibleResources[] = "web_accessible_resources"; |
| 165 const char kWebURLs[] = "app.urls"; | 166 const char kWebURLs[] = "app.urls"; |
| 166 const char kWebview[] = "webview"; | 167 const char kWebview[] = "webview"; |
| 167 const char kWebviewAccessibleResources[] = "accessible_resources"; | 168 const char kWebviewAccessibleResources[] = "accessible_resources"; |
| 168 const char kWebviewName[] = "name"; | 169 const char kWebviewName[] = "name"; |
| 169 const char kWebviewPartitions[] = "partitions"; | 170 const char kWebviewPartitions[] = "partitions"; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 const char kInvalidDefaultLocale[] = | 307 const char kInvalidDefaultLocale[] = |
| 307 "Invalid value for default locale - locale name must be a string."; | 308 "Invalid value for default locale - locale name must be a string."; |
| 308 const char kInvalidDescription[] = | 309 const char kInvalidDescription[] = |
| 309 "Invalid value for 'description'."; | 310 "Invalid value for 'description'."; |
| 310 const char kInvalidDevToolsPage[] = | 311 const char kInvalidDevToolsPage[] = |
| 311 "Invalid value for 'devtools_page'."; | 312 "Invalid value for 'devtools_page'."; |
| 312 const char kInvalidDisplayInLauncher[] = | 313 const char kInvalidDisplayInLauncher[] = |
| 313 "Invalid value for 'display_in_launcher'."; | 314 "Invalid value for 'display_in_launcher'."; |
| 314 const char kInvalidDisplayInNewTabPage[] = | 315 const char kInvalidDisplayInNewTabPage[] = |
| 315 "Invalid value for 'display_in_new_tab_page'."; | 316 "Invalid value for 'display_in_new_tab_page'."; |
| 317 const char kInvalidEmptyDictionary[] = "Empty dictionary for '*'."; |
| 316 const char kInvalidExcludeMatch[] = | 318 const char kInvalidExcludeMatch[] = |
| 317 "Invalid value for 'content_scripts[*].exclude_matches[*]': *"; | 319 "Invalid value for 'content_scripts[*].exclude_matches[*]': *"; |
| 318 const char kInvalidExcludeMatches[] = | 320 const char kInvalidExcludeMatches[] = |
| 319 "Invalid value for 'content_scripts[*].exclude_matches'."; | 321 "Invalid value for 'content_scripts[*].exclude_matches'."; |
| 320 const char kInvalidExport[] = | 322 const char kInvalidExport[] = |
| 321 "Invalid value for 'export'."; | 323 "Invalid value for 'export'."; |
| 322 const char kInvalidExportPermissions[] = | 324 const char kInvalidExportPermissions[] = |
| 323 "Permissions are not allowed for extensions that export resources."; | 325 "Permissions are not allowed for extensions that export resources."; |
| 324 const char kInvalidExportResources[] = | 326 const char kInvalidExportResources[] = |
| 325 "Invalid value for 'export.resources'."; | 327 "Invalid value for 'export.resources'."; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 const char kInvalidSandboxedPage[] = | 553 const char kInvalidSandboxedPage[] = |
| 552 "Invalid value for 'sandbox.pages[*]'."; | 554 "Invalid value for 'sandbox.pages[*]'."; |
| 553 const char kInvalidSandboxedPagesCSP[] = | 555 const char kInvalidSandboxedPagesCSP[] = |
| 554 "Invalid value for 'sandbox.content_security_policy'."; | 556 "Invalid value for 'sandbox.content_security_policy'."; |
| 555 const char kInvalidScriptBadge[] = | 557 const char kInvalidScriptBadge[] = |
| 556 "Invalid value for 'script_badge'."; | 558 "Invalid value for 'script_badge'."; |
| 557 const char kInvalidSearchEngineURL[] = | 559 const char kInvalidSearchEngineURL[] = |
| 558 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; | 560 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; |
| 559 const char kInvalidServiceWorkerScript[] = | 561 const char kInvalidServiceWorkerScript[] = |
| 560 "Invalid value for 'service_worker.script'."; | 562 "Invalid value for 'service_worker.script'."; |
| 561 const char kInvalidEmptySettingsOverrides[] = | |
| 562 "Empty dictionary for 'chrome_settings_overrides'."; | |
| 563 const char kInvalidShortName[] = | 563 const char kInvalidShortName[] = |
| 564 "Invalid value for 'short_name'."; | 564 "Invalid value for 'short_name'."; |
| 565 const char kInvalidSignature[] = | 565 const char kInvalidSignature[] = |
| 566 "Value 'signature' is missing or invalid."; | 566 "Value 'signature' is missing or invalid."; |
| 567 const char kInvalidSpellcheck[] = | 567 const char kInvalidSpellcheck[] = |
| 568 "Invalid value for 'spellcheck'."; | 568 "Invalid value for 'spellcheck'."; |
| 569 const char kInvalidSpellcheckDictionaryFormat[] = | 569 const char kInvalidSpellcheckDictionaryFormat[] = |
| 570 "Invalid value for spellcheck dictionary format."; | 570 "Invalid value for spellcheck dictionary format."; |
| 571 const char kInvalidSpellcheckDictionaryLanguage[] = | 571 const char kInvalidSpellcheckDictionaryLanguage[] = |
| 572 "Invalid value for spellcheck dictionary language."; | 572 "Invalid value for spellcheck dictionary language."; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 const char kWebRequestConflictsWithLazyBackground[] = | 709 const char kWebRequestConflictsWithLazyBackground[] = |
| 710 "The 'webRequest' API cannot be used with event pages."; | 710 "The 'webRequest' API cannot be used with event pages."; |
| 711 #if defined(OS_CHROMEOS) | 711 #if defined(OS_CHROMEOS) |
| 712 const char kIllegalPlugins[] = | 712 const char kIllegalPlugins[] = |
| 713 "Extensions cannot install plugins on Chrome OS"; | 713 "Extensions cannot install plugins on Chrome OS"; |
| 714 #endif | 714 #endif |
| 715 | 715 |
| 716 } // namespace manifest_errors | 716 } // namespace manifest_errors |
| 717 | 717 |
| 718 } // namespace extensions | 718 } // namespace extensions |
| OLD | NEW |