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