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