| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/extensions/extension_manifest_constants.h" | 5 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 6 | 6 |
| 7 namespace extension_manifest_keys { | 7 namespace extension_manifest_keys { |
| 8 | 8 |
| 9 const char kAllFrames[] = "all_frames"; | 9 const char kAllFrames[] = "all_frames"; |
| 10 const char kAltKey[] = "altKey"; | 10 const char kAltKey[] = "altKey"; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const char kPlatformAppBackgroundPage[] = "app.background.page"; | 89 const char kPlatformAppBackgroundPage[] = "app.background.page"; |
| 90 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; | 90 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; |
| 91 const char kPlugins[] = "plugins"; | 91 const char kPlugins[] = "plugins"; |
| 92 const char kPluginsPath[] = "path"; | 92 const char kPluginsPath[] = "path"; |
| 93 const char kPluginsPublic[] = "public"; | 93 const char kPluginsPublic[] = "public"; |
| 94 const char kPublicKey[] = "key"; | 94 const char kPublicKey[] = "key"; |
| 95 const char kRequirements[] = "requirements"; | 95 const char kRequirements[] = "requirements"; |
| 96 const char kRunAt[] = "run_at"; | 96 const char kRunAt[] = "run_at"; |
| 97 const char kSandboxedPages[] = "sandbox.pages"; | 97 const char kSandboxedPages[] = "sandbox.pages"; |
| 98 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; | 98 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; |
| 99 const char kScriptBadge[] = "script_badge"; |
| 99 const char kShiftKey[] = "shiftKey"; | 100 const char kShiftKey[] = "shiftKey"; |
| 100 const char kShortcutKey[] = "shortcutKey"; | 101 const char kShortcutKey[] = "shortcutKey"; |
| 101 const char kSignature[] = "signature"; | 102 const char kSignature[] = "signature"; |
| 102 const char kSuggestedKey[] = "suggested_key"; | 103 const char kSuggestedKey[] = "suggested_key"; |
| 103 const char kTheme[] = "theme"; | 104 const char kTheme[] = "theme"; |
| 104 const char kThemeColors[] = "colors"; | 105 const char kThemeColors[] = "colors"; |
| 105 const char kThemeDisplayProperties[] = "properties"; | 106 const char kThemeDisplayProperties[] = "properties"; |
| 106 const char kThemeImages[] = "images"; | 107 const char kThemeImages[] = "images"; |
| 107 const char kThemeTints[] = "tints"; | 108 const char kThemeTints[] = "tints"; |
| 108 const char kTtsEngine[] = "tts_engine"; | 109 const char kTtsEngine[] = "tts_engine"; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 const char kInvalidRequirements[] = | 395 const char kInvalidRequirements[] = |
| 395 "Invalid value for 'requirements'"; | 396 "Invalid value for 'requirements'"; |
| 396 const char kInvalidRunAt[] = | 397 const char kInvalidRunAt[] = |
| 397 "Invalid value for 'content_scripts[*].run_at'."; | 398 "Invalid value for 'content_scripts[*].run_at'."; |
| 398 const char kInvalidSandboxedPagesList[] = | 399 const char kInvalidSandboxedPagesList[] = |
| 399 "Invalid value for 'sandbox.pages'."; | 400 "Invalid value for 'sandbox.pages'."; |
| 400 const char kInvalidSandboxedPage[] = | 401 const char kInvalidSandboxedPage[] = |
| 401 "Invalid value for 'sandbox.pages[*]'."; | 402 "Invalid value for 'sandbox.pages[*]'."; |
| 402 const char kInvalidSandboxedPagesCSP[] = | 403 const char kInvalidSandboxedPagesCSP[] = |
| 403 "Invalid value for 'sandbox.content_security_policy'."; | 404 "Invalid value for 'sandbox.content_security_policy'."; |
| 405 const char kInvalidScriptBadge[] = |
| 406 "Invalid value for 'script_badge'."; |
| 404 const char kInvalidSignature[] = | 407 const char kInvalidSignature[] = |
| 405 "Value 'signature' is missing or invalid."; | 408 "Value 'signature' is missing or invalid."; |
| 406 const char kInvalidTheme[] = | 409 const char kInvalidTheme[] = |
| 407 "Invalid value for 'theme'."; | 410 "Invalid value for 'theme'."; |
| 408 const char kInvalidThemeColors[] = | 411 const char kInvalidThemeColors[] = |
| 409 "Invalid value for theme colors - colors must be integers"; | 412 "Invalid value for theme colors - colors must be integers"; |
| 410 const char kInvalidThemeImages[] = | 413 const char kInvalidThemeImages[] = |
| 411 "Invalid value for theme images - images must be strings."; | 414 "Invalid value for theme images - images must be strings."; |
| 412 const char kInvalidThemeImagesMissing[] = | 415 const char kInvalidThemeImagesMissing[] = |
| 413 "An image specified in the theme is missing."; | 416 "An image specified in the theme is missing."; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 const char kPermissionNotAllowed[] = | 477 const char kPermissionNotAllowed[] = |
| 475 "Access to permission '*' denied."; | 478 "Access to permission '*' denied."; |
| 476 const char kPlatformAppFlagRequired[] = | 479 const char kPlatformAppFlagRequired[] = |
| 477 "Loading platform_app extension type is turned off by default. " | 480 "Loading platform_app extension type is turned off by default. " |
| 478 "You can enable this type with the --enable-platform-apps " | 481 "You can enable this type with the --enable-platform-apps " |
| 479 "command-line flag."; | 482 "command-line flag."; |
| 480 const char kPlatformAppNeedsManifestVersion2[] = | 483 const char kPlatformAppNeedsManifestVersion2[] = |
| 481 "Platform apps need manifest_version set to >= 2"; | 484 "Platform apps need manifest_version set to >= 2"; |
| 482 const char kReservedMessageFound[] = | 485 const char kReservedMessageFound[] = |
| 483 "Reserved key * found in message catalog."; | 486 "Reserved key * found in message catalog."; |
| 487 const char kScriptBadgeRequiresFlag[] = |
| 488 "The script_badge manifest key is turned off by default. " |
| 489 "You can enable it with the --enable-script-badges command-line flag."; |
| 490 const char kScriptBadgeIconIgnored[] = |
| 491 "default_icon specified in script_badge manifest section will not be used."; |
| 484 const char kWebRequestConflictsWithLazyBackground[] = | 492 const char kWebRequestConflictsWithLazyBackground[] = |
| 485 "The 'webRequest' API cannot be used with event pages."; | 493 "The 'webRequest' API cannot be used with event pages."; |
| 486 #if defined(OS_CHROMEOS) | 494 #if defined(OS_CHROMEOS) |
| 487 const char kIllegalPlugins[] = | 495 const char kIllegalPlugins[] = |
| 488 "Extensions cannot install plugins on Chrome OS"; | 496 "Extensions cannot install plugins on Chrome OS"; |
| 489 #endif | 497 #endif |
| 490 } // namespace extension_manifest_errors | 498 } // namespace extension_manifest_errors |
| OLD | NEW |