| 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* kAllFrames = L"all_frames"; |
| 10 const wchar_t* kBackground = L"background_page"; | 10 const wchar_t* kBackground = L"background_page"; |
| 11 const wchar_t* kBrowserAction = L"browser_action"; | 11 const wchar_t* kBrowserAction = L"browser_action"; |
| 12 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; | 12 const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; |
| 13 const wchar_t* kContentScripts = L"content_scripts"; | 13 const wchar_t* kContentScripts = L"content_scripts"; |
| 14 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script"; | 14 const wchar_t* kConvertedFromUserScript = L"converted_from_user_script"; |
| 15 const wchar_t* kCss = L"css"; | 15 const wchar_t* kCss = L"css"; |
| 16 const wchar_t* kCurrentLocale = L"current_locale"; | 16 const wchar_t* kCurrentLocale = L"current_locale"; |
| 17 const wchar_t* kDefaultLocale = L"default_locale"; | 17 const wchar_t* kDefaultLocale = L"default_locale"; |
| 18 const wchar_t* kDescription = L"description"; | 18 const wchar_t* kDescription = L"description"; |
| 19 const wchar_t* kIcons = L"icons"; | 19 const wchar_t* kIcons = L"icons"; |
| 20 const wchar_t* kJs = L"js"; | 20 const wchar_t* kJs = L"js"; |
| 21 const wchar_t* kLaunch = L"launch"; | 21 const wchar_t* kLaunch = L"launch"; |
| 22 const wchar_t* kLaunchContainer = L"launch.container"; | 22 const wchar_t* kLaunchContainer = L"launch.container"; |
| 23 const wchar_t* kLaunchFullscreen = L"launch.fullscreen"; |
| 23 const wchar_t* kLaunchLocalPath = L"launch.local_path"; | 24 const wchar_t* kLaunchLocalPath = L"launch.local_path"; |
| 24 const wchar_t* kLaunchWebURL = L"launch.web_url"; | 25 const wchar_t* kLaunchWebURL = L"launch.web_url"; |
| 25 const wchar_t* kMatches = L"matches"; | 26 const wchar_t* kMatches = L"matches"; |
| 26 const wchar_t* kMinimumChromeVersion = L"minimum_chrome_version"; | 27 const wchar_t* kMinimumChromeVersion = L"minimum_chrome_version"; |
| 27 const wchar_t* kIncludeGlobs = L"include_globs"; | 28 const wchar_t* kIncludeGlobs = L"include_globs"; |
| 28 const wchar_t* kExcludeGlobs = L"exclude_globs"; | 29 const wchar_t* kExcludeGlobs = L"exclude_globs"; |
| 29 const wchar_t* kName = L"name"; | 30 const wchar_t* kName = L"name"; |
| 30 const wchar_t* kPageActionId = L"id"; | 31 const wchar_t* kPageActionId = L"id"; |
| 31 const wchar_t* kPageAction = L"page_action"; | 32 const wchar_t* kPageAction = L"page_action"; |
| 32 const wchar_t* kPageActions = L"page_actions"; | 33 const wchar_t* kPageActions = L"page_actions"; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 const char* kInvalidIcons = | 106 const char* kInvalidIcons = |
| 106 "Invalid value for 'icons'."; | 107 "Invalid value for 'icons'."; |
| 107 const char* kInvalidIconPath = | 108 const char* kInvalidIconPath = |
| 108 "Invalid value for 'icons[\"*\"]'."; | 109 "Invalid value for 'icons[\"*\"]'."; |
| 109 const char* kInvalidJs = | 110 const char* kInvalidJs = |
| 110 "Invalid value for 'content_scripts[*].js[*]'."; | 111 "Invalid value for 'content_scripts[*].js[*]'."; |
| 111 const char* kInvalidJsList = | 112 const char* kInvalidJsList = |
| 112 "Required value 'content_scripts[*].js' is invalid."; | 113 "Required value 'content_scripts[*].js' is invalid."; |
| 113 const char* kInvalidLaunchContainer = | 114 const char* kInvalidLaunchContainer = |
| 114 "Invalid value for 'launch.container'."; | 115 "Invalid value for 'launch.container'."; |
| 116 const char* kInvalidLaunchFullscreen = |
| 117 "Invalid value for 'launch.fullscreen'."; |
| 115 const char* kInvalidLaunchLocalPath = | 118 const char* kInvalidLaunchLocalPath = |
| 116 "Invalid value for 'launch.local_path'."; | 119 "Invalid value for 'launch.local_path'."; |
| 117 const char* kInvalidLaunchWebURL = | 120 const char* kInvalidLaunchWebURL = |
| 118 "Invalid value for 'launch.web_url'."; | 121 "Invalid value for 'launch.web_url'."; |
| 119 const char* kInvalidKey = | 122 const char* kInvalidKey = |
| 120 "Value 'key' is missing or invalid."; | 123 "Value 'key' is missing or invalid."; |
| 121 const char* kInvalidManifest = | 124 const char* kInvalidManifest = |
| 122 "Manifest file is invalid."; | 125 "Manifest file is invalid."; |
| 123 const char* kInvalidMatchCount = | 126 const char* kInvalidMatchCount = |
| 124 "Invalid value for 'content_scripts[*].matches'. There must be at least" | 127 "Invalid value for 'content_scripts[*].matches'. There must be at least" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 "must be set to true in order to use any other web content features."; | 246 "must be set to true in order to use any other web content features."; |
| 244 } // namespace extension_manifest_errors | 247 } // namespace extension_manifest_errors |
| 245 | 248 |
| 246 namespace extension_urls { | 249 namespace extension_urls { |
| 247 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; | 250 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; |
| 248 const char* kGalleryDownloadPrefix = | 251 const char* kGalleryDownloadPrefix = |
| 249 "https://clients2.googleusercontent.com/crx/download"; | 252 "https://clients2.googleusercontent.com/crx/download"; |
| 250 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; | 253 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; |
| 251 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; | 254 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; |
| 252 } | 255 } |
| OLD | NEW |