| 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* kChromeURLOverrides = L"chrome_url_overrides"; | 11 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; |
| 11 const wchar_t* kContentScripts = L"content_scripts"; | 12 const wchar_t* kContentScripts = L"content_scripts"; |
| 12 const wchar_t* kCss = L"css"; | 13 const wchar_t* kCss = L"css"; |
| 13 const wchar_t* kDefaultLocale = L"default_locale"; | 14 const wchar_t* kDefaultLocale = L"default_locale"; |
| 14 const wchar_t* kDescription = L"description"; | 15 const wchar_t* kDescription = L"description"; |
| 15 const wchar_t* kIcons = L"icons"; | 16 const wchar_t* kIcons = L"icons"; |
| 16 const wchar_t* kJs = L"js"; | 17 const wchar_t* kJs = L"js"; |
| 17 const wchar_t* kMatches = L"matches"; | 18 const wchar_t* kMatches = L"matches"; |
| 18 const wchar_t* kName = L"name"; | 19 const wchar_t* kName = L"name"; |
| 19 const wchar_t* kPageActionId = L"id"; | 20 const wchar_t* kPageActionId = L"id"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 const char* kRunAtDocumentEnd = "document_end"; | 47 const char* kRunAtDocumentEnd = "document_end"; |
| 47 const char* kPageActionTypeTab = "tab"; | 48 const char* kPageActionTypeTab = "tab"; |
| 48 const char* kPageActionTypePermanent = "permanent"; | 49 const char* kPageActionTypePermanent = "permanent"; |
| 49 } // namespace extension_manifest_values | 50 } // namespace extension_manifest_values |
| 50 | 51 |
| 51 // Extension-related error messages. Some of these are simple patterns, where a | 52 // Extension-related error messages. Some of these are simple patterns, where a |
| 52 // '*' is replaced at runtime with a specific value. This is used instead of | 53 // '*' is replaced at runtime with a specific value. This is used instead of |
| 53 // printf because we want to unit test them and scanf is hard to make | 54 // printf because we want to unit test them and scanf is hard to make |
| 54 // cross-platform. | 55 // cross-platform. |
| 55 namespace extension_manifest_errors { | 56 namespace extension_manifest_errors { |
| 57 const char* kInvalidBrowserAction = |
| 58 "Invalid value for 'browser_action'."; |
| 56 const char* kInvalidChromeURLOverrides = | 59 const char* kInvalidChromeURLOverrides = |
| 57 "Invalid value for 'chrome_url_overrides'."; | 60 "Invalid value for 'chrome_url_overrides'."; |
| 58 const char* kInvalidContentScript = | 61 const char* kInvalidContentScript = |
| 59 "Invalid value for 'content_scripts[*]'."; | 62 "Invalid value for 'content_scripts[*]'."; |
| 60 const char* kInvalidContentScriptsList = | 63 const char* kInvalidContentScriptsList = |
| 61 "Invalid value for 'content_scripts'."; | 64 "Invalid value for 'content_scripts'."; |
| 62 const char* kInvalidCss = | 65 const char* kInvalidCss = |
| 63 "Invalid value for 'content_scripts[*].css[*]'."; | 66 "Invalid value for 'content_scripts[*].css[*]'."; |
| 64 const char* kInvalidCssList = | 67 const char* kInvalidCssList = |
| 65 "Required value 'content_scripts[*].css is invalid."; | 68 "Required value 'content_scripts[*].css is invalid."; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 "Invalid value for update url: '[*]'."; | 149 "Invalid value for update url: '[*]'."; |
| 147 const char* kInvalidDefaultLocale = | 150 const char* kInvalidDefaultLocale = |
| 148 "Invalid value for default locale - locale name must be a string."; | 151 "Invalid value for default locale - locale name must be a string."; |
| 149 const char* kThemesCannotContainExtensions = | 152 const char* kThemesCannotContainExtensions = |
| 150 "A theme cannot contain extensions code."; | 153 "A theme cannot contain extensions code."; |
| 151 const char* kLocalesNoDefaultLocaleSpecified = | 154 const char* kLocalesNoDefaultLocaleSpecified = |
| 152 "Localization used, but default_locale wasn't specified in the manifest."; | 155 "Localization used, but default_locale wasn't specified in the manifest."; |
| 153 const char* kLocalesNoValidLocaleNamesListed = | 156 const char* kLocalesNoValidLocaleNamesListed = |
| 154 "No valid locale name could be found in _locales directory."; | 157 "No valid locale name could be found in _locales directory."; |
| 155 } // namespace extension_manifest_errors | 158 } // namespace extension_manifest_errors |
| OLD | NEW |