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 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const char kPlatforms[] = "platforms"; | 119 const char kPlatforms[] = "platforms"; |
120 const char kPlugins[] = "plugins"; | 120 const char kPlugins[] = "plugins"; |
121 const char kPluginsPath[] = "path"; | 121 const char kPluginsPath[] = "path"; |
122 const char kPluginsPublic[] = "public"; | 122 const char kPluginsPublic[] = "public"; |
123 const char kPublicKey[] = "key"; | 123 const char kPublicKey[] = "key"; |
124 const char kRemoveButton[] = "remove_button"; | 124 const char kRemoveButton[] = "remove_button"; |
125 const char kRequirements[] = "requirements"; | 125 const char kRequirements[] = "requirements"; |
126 const char kRunAt[] = "run_at"; | 126 const char kRunAt[] = "run_at"; |
127 const char kSandboxedPages[] = "sandbox.pages"; | 127 const char kSandboxedPages[] = "sandbox.pages"; |
128 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; | 128 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; |
129 const char kScriptBadge[] = "script_badge"; | |
130 const char kSettingsOverride[] = "chrome_settings_overrides"; | 129 const char kSettingsOverride[] = "chrome_settings_overrides"; |
131 const char kSettingsOverrideAlternateUrls[] = | 130 const char kSettingsOverrideAlternateUrls[] = |
132 "chrome_settings_overrides.search_provider.alternate_urls"; | 131 "chrome_settings_overrides.search_provider.alternate_urls"; |
133 const char kShiftKey[] = "shiftKey"; | 132 const char kShiftKey[] = "shiftKey"; |
134 const char kShortcutKey[] = "shortcutKey"; | 133 const char kShortcutKey[] = "shortcutKey"; |
135 const char kShortName[] = "short_name"; | 134 const char kShortName[] = "short_name"; |
136 const char kSignature[] = "signature"; | 135 const char kSignature[] = "signature"; |
137 const char kSockets[] = "sockets"; | 136 const char kSockets[] = "sockets"; |
138 const char kSpellcheck[] = "spellcheck"; | 137 const char kSpellcheck[] = "spellcheck"; |
139 const char kSpellcheckDictionaryFormat[] = "dictionary_format"; | 138 const char kSpellcheckDictionaryFormat[] = "dictionary_format"; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 const char kKeyShift[] = "Shift"; | 216 const char kKeyShift[] = "Shift"; |
218 const char kKeySpace[] = "Space"; | 217 const char kKeySpace[] = "Space"; |
219 const char kKeyTab[] = "Tab"; | 218 const char kKeyTab[] = "Tab"; |
220 const char kKeyUp[] = "Up"; | 219 const char kKeyUp[] = "Up"; |
221 const char kRunAtDocumentStart[] = "document_start"; | 220 const char kRunAtDocumentStart[] = "document_start"; |
222 const char kRunAtDocumentEnd[] = "document_end"; | 221 const char kRunAtDocumentEnd[] = "document_end"; |
223 const char kRunAtDocumentIdle[] = "document_idle"; | 222 const char kRunAtDocumentIdle[] = "document_idle"; |
224 const char kPageActionCommandEvent[] = "_execute_page_action"; | 223 const char kPageActionCommandEvent[] = "_execute_page_action"; |
225 const char kPageActionTypeTab[] = "tab"; | 224 const char kPageActionTypeTab[] = "tab"; |
226 const char kPageActionTypePermanent[] = "permanent"; | 225 const char kPageActionTypePermanent[] = "permanent"; |
227 const char kScriptBadgeCommandEvent[] = "_execute_script_badge"; | |
228 const char kLaunchContainerPanel[] = "panel"; | 226 const char kLaunchContainerPanel[] = "panel"; |
229 const char kLaunchContainerTab[] = "tab"; | 227 const char kLaunchContainerTab[] = "tab"; |
230 const char kLaunchContainerWindow[] = "window"; | 228 const char kLaunchContainerWindow[] = "window"; |
231 | 229 |
232 } // namespace manifest_values | 230 } // namespace manifest_values |
233 | 231 |
234 // Extension-related error messages. Some of these are simple patterns, where a | 232 // Extension-related error messages. Some of these are simple patterns, where a |
235 // '*' is replaced at runtime with a specific value. This is used instead of | 233 // '*' is replaced at runtime with a specific value. This is used instead of |
236 // printf because we want to unit test them and scanf is hard to make | 234 // printf because we want to unit test them and scanf is hard to make |
237 // cross-platform. | 235 // cross-platform. |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 const char kInvalidRequirements[] = | 537 const char kInvalidRequirements[] = |
540 "Invalid value for 'requirements'"; | 538 "Invalid value for 'requirements'"; |
541 const char kInvalidRunAt[] = | 539 const char kInvalidRunAt[] = |
542 "Invalid value for 'content_scripts[*].run_at'."; | 540 "Invalid value for 'content_scripts[*].run_at'."; |
543 const char kInvalidSandboxedPagesList[] = | 541 const char kInvalidSandboxedPagesList[] = |
544 "Invalid value for 'sandbox.pages'."; | 542 "Invalid value for 'sandbox.pages'."; |
545 const char kInvalidSandboxedPage[] = | 543 const char kInvalidSandboxedPage[] = |
546 "Invalid value for 'sandbox.pages[*]'."; | 544 "Invalid value for 'sandbox.pages[*]'."; |
547 const char kInvalidSandboxedPagesCSP[] = | 545 const char kInvalidSandboxedPagesCSP[] = |
548 "Invalid value for 'sandbox.content_security_policy'."; | 546 "Invalid value for 'sandbox.content_security_policy'."; |
549 const char kInvalidScriptBadge[] = | |
550 "Invalid value for 'script_badge'."; | |
551 const char kInvalidSearchEngineMissingKeys[] = | 547 const char kInvalidSearchEngineMissingKeys[] = |
552 "Missing mandatory parameters for " | 548 "Missing mandatory parameters for " |
553 "'chrome_settings_overrides.search_provider'."; | 549 "'chrome_settings_overrides.search_provider'."; |
554 const char kInvalidSearchEngineURL[] = | 550 const char kInvalidSearchEngineURL[] = |
555 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; | 551 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; |
556 const char kInvalidShortName[] = | 552 const char kInvalidShortName[] = |
557 "Invalid value for 'short_name'."; | 553 "Invalid value for 'short_name'."; |
558 const char kInvalidSignature[] = | 554 const char kInvalidSignature[] = |
559 "Value 'signature' is missing or invalid."; | 555 "Value 'signature' is missing or invalid."; |
560 const char kInvalidSpellcheck[] = | 556 const char kInvalidSpellcheck[] = |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 const char kPermissionMustBeOptional[] = | 677 const char kPermissionMustBeOptional[] = |
682 "Permission '*' must be specified in the optional section of the manifest."; | 678 "Permission '*' must be specified in the optional section of the manifest."; |
683 const char kPermissionNotAllowed[] = | 679 const char kPermissionNotAllowed[] = |
684 "Access to permission '*' denied."; | 680 "Access to permission '*' denied."; |
685 const char kPermissionNotAllowedInManifest[] = | 681 const char kPermissionNotAllowedInManifest[] = |
686 "Permission '*' cannot be specified in the manifest."; | 682 "Permission '*' cannot be specified in the manifest."; |
687 const char kPermissionUnknownOrMalformed[] = | 683 const char kPermissionUnknownOrMalformed[] = |
688 "Permission '*' is unknown or URL pattern is malformed."; | 684 "Permission '*' is unknown or URL pattern is malformed."; |
689 const char kReservedMessageFound[] = | 685 const char kReservedMessageFound[] = |
690 "Reserved key * found in message catalog."; | 686 "Reserved key * found in message catalog."; |
691 const char kScriptBadgeRequiresFlag[] = | |
692 "The script_badge manifest key is turned off by default. " | |
693 "You can enable it with the --enable-script-badges command-line flag."; | |
694 const char kScriptBadgeIconIgnored[] = | |
695 "default_icon specified in script_badge manifest section will not be used."; | |
696 const char kScriptBadgeTitleIgnored[] = | |
697 "default_title specified in script_badge manifest section will not be " | |
698 "used."; | |
699 const char kUnrecognizedManifestKey[] = "Unrecognized manifest key '*'."; | 687 const char kUnrecognizedManifestKey[] = "Unrecognized manifest key '*'."; |
700 const char kUnrecognizedManifestProperty[] = | 688 const char kUnrecognizedManifestProperty[] = |
701 "Unrecognized property '*' of manifest key '*'."; | 689 "Unrecognized property '*' of manifest key '*'."; |
702 const char kWebRequestConflictsWithLazyBackground[] = | 690 const char kWebRequestConflictsWithLazyBackground[] = |
703 "The 'webRequest' API cannot be used with event pages."; | 691 "The 'webRequest' API cannot be used with event pages."; |
704 #if defined(OS_CHROMEOS) | 692 #if defined(OS_CHROMEOS) |
705 const char kIllegalPlugins[] = | 693 const char kIllegalPlugins[] = |
706 "Extensions cannot install plugins on Chrome OS"; | 694 "Extensions cannot install plugins on Chrome OS"; |
707 #endif | 695 #endif |
708 | 696 |
709 } // namespace manifest_errors | 697 } // namespace manifest_errors |
710 | 698 |
711 } // namespace extensions | 699 } // namespace extensions |
OLD | NEW |