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 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 "This extension requires * version * or greater."; | 159 "This extension requires * version * or greater."; |
160 const char kDisabledByPolicy[] = | 160 const char kDisabledByPolicy[] = |
161 "This extension has been disabled by your administrator."; | 161 "This extension has been disabled by your administrator."; |
162 const char kDevToolsExperimental[] = | 162 const char kDevToolsExperimental[] = |
163 "You must request the 'experimental' permission in order to use the" | 163 "You must request the 'experimental' permission in order to use the" |
164 " DevTools API."; | 164 " DevTools API."; |
165 const char kExpectString[] = "Expect string value."; | 165 const char kExpectString[] = "Expect string value."; |
166 const char kExperimentalFlagRequired[] = | 166 const char kExperimentalFlagRequired[] = |
167 "Loading extensions with 'experimental' permission requires" | 167 "Loading extensions with 'experimental' permission requires" |
168 " --enable-experimental-extension-apis command line flag."; | 168 " --enable-experimental-extension-apis command line flag."; |
169 const char kHostedAppsCannotIncludeExtensionFeatures[] = | 169 const char kFeatureNotAllowed[] = |
170 "Hosted apps cannot use the extension feature '*'."; | 170 "Feature '*' is not allowed in this type of manifest."; |
171 const char kInvalidAllFrames[] = | 171 const char kInvalidAllFrames[] = |
172 "Invalid value for 'content_scripts[*].all_frames'."; | 172 "Invalid value for 'content_scripts[*].all_frames'."; |
173 const char kInvalidBackground[] = | 173 const char kInvalidBackground[] = |
174 "Invalid value for 'background_page'."; | 174 "Invalid value for 'background_page'."; |
175 const char kInvalidBackgroundInHostedApp[] = | 175 const char kInvalidBackgroundInHostedApp[] = |
176 "Invalid value for 'background_page'. Hosted apps must specify an " | 176 "Invalid value for 'background_page'. Hosted apps must specify an " |
177 "absolute HTTPS URL for the background page."; | 177 "absolute HTTPS URL for the background page."; |
178 const char kInvalidBrowserAction[] = | 178 const char kInvalidBrowserAction[] = |
179 "Invalid value for 'browser_action'."; | 179 "Invalid value for 'browser_action'."; |
180 const char kInvalidChromeURLOverrides[] = | 180 const char kInvalidChromeURLOverrides[] = |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 "Wildcards are not allowed in extent URL pattern paths."; | 422 "Wildcards are not allowed in extent URL pattern paths."; |
423 const char kOneUISurfaceOnly[] = | 423 const char kOneUISurfaceOnly[] = |
424 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; | 424 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; |
425 const char kPermissionNotAllowed[] = | 425 const char kPermissionNotAllowed[] = |
426 "Access to permission '*' denied."; | 426 "Access to permission '*' denied."; |
427 const char kReservedMessageFound[] = | 427 const char kReservedMessageFound[] = |
428 "Reserved key * found in message catalog."; | 428 "Reserved key * found in message catalog."; |
429 const char kSidebarExperimental[] = | 429 const char kSidebarExperimental[] = |
430 "You must request the 'experimental' permission in order to use the" | 430 "You must request the 'experimental' permission in order to use the" |
431 " Sidebar API."; | 431 " Sidebar API."; |
432 const char kThemesCannotContainExtensions[] = | |
433 "A theme cannot contain extensions code."; | |
434 #if defined(OS_CHROMEOS) | 432 #if defined(OS_CHROMEOS) |
435 const char kIllegalPlugins[] = | 433 const char kIllegalPlugins[] = |
436 "Extensions cannot install plugins on Chrome OS"; | 434 "Extensions cannot install plugins on Chrome OS"; |
437 #endif | 435 #endif |
438 } // namespace extension_manifest_errors | 436 } // namespace extension_manifest_errors |
439 | 437 |
440 namespace extension_urls { | 438 namespace extension_urls { |
441 std::string GetWebstoreLaunchURL() { | 439 std::string GetWebstoreLaunchURL() { |
442 std::string gallery_prefix = kGalleryBrowsePrefix; | 440 std::string gallery_prefix = kGalleryBrowsePrefix; |
443 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) | 441 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; | 487 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; |
490 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; | 488 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; |
491 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; | 489 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; |
492 #if defined(OS_CHROMEOS) | 490 #if defined(OS_CHROMEOS) |
493 const char kAccessExtensionPath[] = | 491 const char kAccessExtensionPath[] = |
494 "/usr/share/chromeos-assets/accessibility/extensions"; | 492 "/usr/share/chromeos-assets/accessibility/extensions"; |
495 const char kChromeVoxDirectoryName[] = "access_chromevox"; | 493 const char kChromeVoxDirectoryName[] = "access_chromevox"; |
496 #endif | 494 #endif |
497 | 495 |
498 } | 496 } |
OLD | NEW |