| 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* kAllFrames = L"all_frames"; |
| 9 const wchar_t* kBackground = L"background_page"; | 10 const wchar_t* kBackground = L"background_page"; |
| 10 const wchar_t* kBrowserAction = L"browser_action"; | 11 const wchar_t* kBrowserAction = L"browser_action"; |
| 11 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; | 12 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; |
| 12 const wchar_t* kContentScripts = L"content_scripts"; | 13 const wchar_t* kContentScripts = L"content_scripts"; |
| 13 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script"; | 14 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script"; |
| 14 const wchar_t* kCss = L"css"; | 15 const wchar_t* kCss = L"css"; |
| 15 const wchar_t* kDefaultLocale = L"default_locale"; | 16 const wchar_t* kDefaultLocale = L"default_locale"; |
| 16 const wchar_t* kDescription = L"description"; | 17 const wchar_t* kDescription = L"description"; |
| 17 const wchar_t* kIcons = L"icons"; | 18 const wchar_t* kIcons = L"icons"; |
| 18 const wchar_t* kJs = L"js"; | 19 const wchar_t* kJs = L"js"; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const char* kRunAtDocumentIdle = "document_idle"; | 59 const char* kRunAtDocumentIdle = "document_idle"; |
| 59 const char* kPageActionTypeTab = "tab"; | 60 const char* kPageActionTypeTab = "tab"; |
| 60 const char* kPageActionTypePermanent = "permanent"; | 61 const char* kPageActionTypePermanent = "permanent"; |
| 61 } // namespace extension_manifest_values | 62 } // namespace extension_manifest_values |
| 62 | 63 |
| 63 // Extension-related error messages. Some of these are simple patterns, where a | 64 // Extension-related error messages. Some of these are simple patterns, where a |
| 64 // '*' is replaced at runtime with a specific value. This is used instead of | 65 // '*' is replaced at runtime with a specific value. This is used instead of |
| 65 // printf because we want to unit test them and scanf is hard to make | 66 // printf because we want to unit test them and scanf is hard to make |
| 66 // cross-platform. | 67 // cross-platform. |
| 67 namespace extension_manifest_errors { | 68 namespace extension_manifest_errors { |
| 69 const char* kInvalidAllFrames = |
| 70 "Invalid value for 'content_scripts[*].all_frames'."; |
| 68 const char* kInvalidBrowserAction = | 71 const char* kInvalidBrowserAction = |
| 69 "Invalid value for 'browser_action'."; | 72 "Invalid value for 'browser_action'."; |
| 70 const char* kInvalidChromeURLOverrides = | 73 const char* kInvalidChromeURLOverrides = |
| 71 "Invalid value for 'chrome_url_overrides'."; | 74 "Invalid value for 'chrome_url_overrides'."; |
| 72 const char* kInvalidContentScript = | 75 const char* kInvalidContentScript = |
| 73 "Invalid value for 'content_scripts[*]'."; | 76 "Invalid value for 'content_scripts[*]'."; |
| 74 const char* kInvalidContentScriptsList = | 77 const char* kInvalidContentScriptsList = |
| 75 "Invalid value for 'content_scripts'."; | 78 "Invalid value for 'content_scripts'."; |
| 76 const char* kInvalidCss = | 79 const char* kInvalidCss = |
| 77 "Invalid value for 'content_scripts[*].css[*]'."; | 80 "Invalid value for 'content_scripts[*].css[*]'."; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 "Default locale is defined but default data couldn't be loaded."; | 191 "Default locale is defined but default data couldn't be loaded."; |
| 189 const char* kLocalesNoValidLocaleNamesListed = | 192 const char* kLocalesNoValidLocaleNamesListed = |
| 190 "No valid locale name could be found in _locales directory."; | 193 "No valid locale name could be found in _locales directory."; |
| 191 const char* kLocalesTreeMissing = | 194 const char* kLocalesTreeMissing = |
| 192 "Default locale was specified, but _locales subtree is missing."; | 195 "Default locale was specified, but _locales subtree is missing."; |
| 193 const char* kLocalesMessagesFileMissing = | 196 const char* kLocalesMessagesFileMissing = |
| 194 "Messages file is missing for locale."; | 197 "Messages file is missing for locale."; |
| 195 const char* kInvalidOptionsPage = | 198 const char* kInvalidOptionsPage = |
| 196 "Invalid value for 'options_page'."; | 199 "Invalid value for 'options_page'."; |
| 197 } // namespace extension_manifest_errors | 200 } // namespace extension_manifest_errors |
| OLD | NEW |