OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 char* kAllFrames = "all_frames"; | 9 const char* kAllFrames = "all_frames"; |
10 const char* kApp = "app"; | 10 const char* kApp = "app"; |
11 const char* kBackground = "background_page"; | 11 const char* kBackground = "background_page"; |
12 const char* kBrowserAction = "browser_action"; | 12 const char* kBrowserAction = "browser_action"; |
13 const char* kChromeURLOverrides = "chrome_url_overrides"; | 13 const char* kChromeURLOverrides = "chrome_url_overrides"; |
14 const char* kContentScripts = "content_scripts"; | 14 const char* kContentScripts = "content_scripts"; |
15 const char* kConvertedFromUserScript = "converted_from_user_script"; | 15 const char* kConvertedFromUserScript = "converted_from_user_script"; |
16 const char* kCss = "css"; | 16 const char* kCss = "css"; |
17 const char* kCurrentLocale = "current_locale"; | 17 const char* kCurrentLocale = "current_locale"; |
18 const char* kDefaultLocale = "default_locale"; | 18 const char* kDefaultLocale = "default_locale"; |
19 const char* kDescription = "description"; | 19 const char* kDescription = "description"; |
20 const char* kDevToolsPage = "devtools_page"; | 20 const char* kDevToolsPage = "devtools_page"; |
21 const char* kExcludeGlobs = "exclude_globs"; | 21 const char* kExcludeGlobs = "exclude_globs"; |
| 22 const char* kFileFilters = "file_filters"; |
| 23 const char* kFileBrowserActions = "file_browser_actions"; |
22 const char* kHomepageURL = "homepage_url"; | 24 const char* kHomepageURL = "homepage_url"; |
23 const char* kIcons = "icons"; | 25 const char* kIcons = "icons"; |
24 const char* kIncognito = "incognito"; | 26 const char* kIncognito = "incognito"; |
25 const char* kIncludeGlobs = "include_globs"; | 27 const char* kIncludeGlobs = "include_globs"; |
26 const char* kIsolation = "app.isolation"; | 28 const char* kIsolation = "app.isolation"; |
27 const char* kJs = "js"; | 29 const char* kJs = "js"; |
28 const char* kLaunch = "app.launch"; | 30 const char* kLaunch = "app.launch"; |
29 const char* kLaunchContainer = "app.launch.container"; | 31 const char* kLaunchContainer = "app.launch.container"; |
30 const char* kLaunchHeight = "app.launch.height"; | 32 const char* kLaunchHeight = "app.launch.height"; |
31 const char* kLaunchLocalPath = "app.launch.local_path"; | 33 const char* kLaunchLocalPath = "app.launch.local_path"; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 const char* kInvalidCss = | 143 const char* kInvalidCss = |
142 "Invalid value for 'content_scripts[*].css[*]'."; | 144 "Invalid value for 'content_scripts[*].css[*]'."; |
143 const char* kInvalidCssList = | 145 const char* kInvalidCssList = |
144 "Required value 'content_scripts[*].css' is invalid."; | 146 "Required value 'content_scripts[*].css' is invalid."; |
145 const char* kInvalidDefaultLocale = | 147 const char* kInvalidDefaultLocale = |
146 "Invalid value for default locale - locale name must be a string."; | 148 "Invalid value for default locale - locale name must be a string."; |
147 const char* kInvalidDescription = | 149 const char* kInvalidDescription = |
148 "Invalid value for 'description'."; | 150 "Invalid value for 'description'."; |
149 const char* kInvalidDevToolsPage = | 151 const char* kInvalidDevToolsPage = |
150 "Invalid value for 'devtools_page'."; | 152 "Invalid value for 'devtools_page'."; |
| 153 const char* kInvalidFileBrowserAction = |
| 154 "Invalid value for 'file_browser_action'."; |
| 155 const char* kInvalidFileFiltersList = |
| 156 "Invalid value for 'file_filters'."; |
| 157 const char* kInvalidFileFilterValue = |
| 158 "Invalid value for 'file_filters[*]'."; |
151 const char* kInvalidGlob = | 159 const char* kInvalidGlob = |
152 "Invalid value for 'content_scripts[*].*[*]'."; | 160 "Invalid value for 'content_scripts[*].*[*]'."; |
153 const char* kInvalidGlobList = | 161 const char* kInvalidGlobList = |
154 "Invalid value for 'content_scripts[*].*'."; | 162 "Invalid value for 'content_scripts[*].*'."; |
155 const char* kInvalidHomepageURL = | 163 const char* kInvalidHomepageURL = |
156 "Invalid value for homepage url: '[*]'."; | 164 "Invalid value for homepage url: '[*]'."; |
157 const char* kInvalidIconPath = | 165 const char* kInvalidIconPath = |
158 "Invalid value for 'icons[\"*\"]'."; | 166 "Invalid value for 'icons[\"*\"]'."; |
159 const char* kInvalidIcons = | 167 const char* kInvalidIcons = |
160 "Invalid value for 'icons'."; | 168 "Invalid value for 'icons'."; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 const char* kInvalidTtsVoices = | 288 const char* kInvalidTtsVoices = |
281 "Invalid value for 'tts.voices'."; | 289 "Invalid value for 'tts.voices'."; |
282 const char* kInvalidTtsVoicesGender = | 290 const char* kInvalidTtsVoicesGender = |
283 "Invalid value for 'tts.voices[*].gender'."; | 291 "Invalid value for 'tts.voices[*].gender'."; |
284 const char* kInvalidTtsVoicesLocale = | 292 const char* kInvalidTtsVoicesLocale = |
285 "Invalid value for 'tts.voices[*].locale'."; | 293 "Invalid value for 'tts.voices[*].locale'."; |
286 const char* kInvalidTtsVoicesVoiceName = | 294 const char* kInvalidTtsVoicesVoiceName = |
287 "Invalid value for 'tts.voices[*].voiceName'."; | 295 "Invalid value for 'tts.voices[*].voiceName'."; |
288 const char* kInvalidUpdateURL = | 296 const char* kInvalidUpdateURL = |
289 "Invalid value for update url: '[*]'."; | 297 "Invalid value for update url: '[*]'."; |
| 298 const char* kInvalidURLPatternError = |
| 299 "Invalid url pattern '*'"; |
290 const char* kInvalidVersion = | 300 const char* kInvalidVersion = |
291 "Required value 'version' is missing or invalid. It must be between 1-4 " | 301 "Required value 'version' is missing or invalid. It must be between 1-4 " |
292 "dot-separated integers each between 0 and 65536."; | 302 "dot-separated integers each between 0 and 65536."; |
293 const char* kInvalidWebURL = | 303 const char* kInvalidWebURL = |
294 "Invalid value for 'app.urls[*]': *"; | 304 "Invalid value for 'app.urls[*]': *"; |
295 const char* kInvalidWebURLs = | 305 const char* kInvalidWebURLs = |
296 "Invalid value for 'app.urls'."; | 306 "Invalid value for 'app.urls'."; |
297 const char* kInvalidZipHash = | 307 const char* kInvalidZipHash = |
298 "Required key 'zip_hash' is missing or invalid."; | 308 "Required key 'zip_hash' is missing or invalid."; |
299 const char* kLaunchPathAndURLAreExclusive = | 309 const char* kLaunchPathAndURLAreExclusive = |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 namespace extension_misc { | 365 namespace extension_misc { |
356 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; | 366 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; |
357 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; | 367 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; |
358 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; | 368 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; |
359 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; | 369 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; |
360 #if defined(OS_CHROMEOS) | 370 #if defined(OS_CHROMEOS) |
361 const char* kAccessExtensionPath = | 371 const char* kAccessExtensionPath = |
362 "/usr/share/chromeos-assets/accessibility/extensions"; | 372 "/usr/share/chromeos-assets/accessibility/extensions"; |
363 #endif | 373 #endif |
364 } | 374 } |
OLD | NEW |