| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_constants.h" | 5 #include "chrome/common/extensions/extension_constants.h" |
| 6 | 6 |
| 7 namespace extension_manifest_keys { | 7 namespace extension_manifest_keys { |
| 8 | 8 |
| 9 const wchar_t* kBackground = L"background_page"; | 9 const wchar_t* kBackground = L"background_page"; |
| 10 const wchar_t* kBrowserAction = L"browser_action"; | 10 const wchar_t* kBrowserAction = L"browser_action"; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 const char* kInvalidGlob = | 84 const char* kInvalidGlob = |
| 85 "Invalid value for 'content_scripts[*].*[*]'."; | 85 "Invalid value for 'content_scripts[*].*[*]'."; |
| 86 const char* kInvalidIcons = | 86 const char* kInvalidIcons = |
| 87 "Invalid value for 'icons'."; | 87 "Invalid value for 'icons'."; |
| 88 const char* kInvalidIconPath = | 88 const char* kInvalidIconPath = |
| 89 "Invalid value for 'icons[\"*\"]'."; | 89 "Invalid value for 'icons[\"*\"]'."; |
| 90 const char* kInvalidJs = | 90 const char* kInvalidJs = |
| 91 "Invalid value for 'content_scripts[*].js[*]'."; | 91 "Invalid value for 'content_scripts[*].js[*]'."; |
| 92 const char* kInvalidJsList = | 92 const char* kInvalidJsList = |
| 93 "Required value 'content_scripts[*].js is invalid."; | 93 "Required value 'content_scripts[*].js is invalid."; |
| 94 const char* kInvalidJsMatches = |
| 95 "Content scripts can not be executed on file:// urls."; |
| 94 const char* kInvalidKey = | 96 const char* kInvalidKey = |
| 95 "Value 'key' is missing or invalid."; | 97 "Value 'key' is missing or invalid."; |
| 96 const char* kInvalidManifest = | 98 const char* kInvalidManifest = |
| 97 "Manifest file is invalid."; | 99 "Manifest file is invalid."; |
| 98 const char* kInvalidMatchCount = | 100 const char* kInvalidMatchCount = |
| 99 "Invalid value for 'content_scripts[*].matches. There must be at least one " | 101 "Invalid value for 'content_scripts[*].matches. There must be at least one " |
| 100 "match specified."; | 102 "match specified."; |
| 101 const char* kInvalidMatch = | 103 const char* kInvalidMatch = |
| 102 "Invalid value for 'content_scripts[*].matches[*]'."; | 104 "Invalid value for 'content_scripts[*].matches[*]'."; |
| 103 const char* kInvalidMatches = | 105 const char* kInvalidMatches = |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 "An extension cannot have both a page action and a browser action."; | 184 "An extension cannot have both a page action and a browser action."; |
| 183 const char* kThemesCannotContainExtensions = | 185 const char* kThemesCannotContainExtensions = |
| 184 "A theme cannot contain extensions code."; | 186 "A theme cannot contain extensions code."; |
| 185 const char* kLocalesNoDefaultLocaleSpecified = | 187 const char* kLocalesNoDefaultLocaleSpecified = |
| 186 "Localization used, but default_locale wasn't specified in the manifest."; | 188 "Localization used, but default_locale wasn't specified in the manifest."; |
| 187 const char* kLocalesNoValidLocaleNamesListed = | 189 const char* kLocalesNoValidLocaleNamesListed = |
| 188 "No valid locale name could be found in _locales directory."; | 190 "No valid locale name could be found in _locales directory."; |
| 189 const char* kInvalidOptionsPage = | 191 const char* kInvalidOptionsPage = |
| 190 "Invalid value for 'options_page'."; | 192 "Invalid value for 'options_page'."; |
| 191 } // namespace extension_manifest_errors | 193 } // namespace extension_manifest_errors |
| OLD | NEW |