Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 9006027: Rip Out the Sidebar API (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const char kPermissions[] = "permissions"; 78 const char kPermissions[] = "permissions";
79 const char kPlatformApp[] = "platform_app"; 79 const char kPlatformApp[] = "platform_app";
80 const char kPlugins[] = "plugins"; 80 const char kPlugins[] = "plugins";
81 const char kPluginsPath[] = "path"; 81 const char kPluginsPath[] = "path";
82 const char kPluginsPublic[] = "public"; 82 const char kPluginsPublic[] = "public";
83 const char kPublicKey[] = "key"; 83 const char kPublicKey[] = "key";
84 const char kRequirements[] = "requirements"; 84 const char kRequirements[] = "requirements";
85 const char kRunAt[] = "run_at"; 85 const char kRunAt[] = "run_at";
86 const char kShiftKey[] = "shiftKey"; 86 const char kShiftKey[] = "shiftKey";
87 const char kShortcutKey[] = "shortcutKey"; 87 const char kShortcutKey[] = "shortcutKey";
88 const char kSidebar[] = "sidebar";
89 const char kSidebarDefaultIcon[] = "default_icon";
90 const char kSidebarDefaultPage[] = "default_page";
91 const char kSidebarDefaultTitle[] = "default_title";
92 const char kSignature[] = "signature"; 88 const char kSignature[] = "signature";
93 const char kTheme[] = "theme"; 89 const char kTheme[] = "theme";
94 const char kThemeColors[] = "colors"; 90 const char kThemeColors[] = "colors";
95 const char kThemeDisplayProperties[] = "properties"; 91 const char kThemeDisplayProperties[] = "properties";
96 const char kThemeImages[] = "images"; 92 const char kThemeImages[] = "images";
97 const char kThemeTints[] = "tints"; 93 const char kThemeTints[] = "tints";
98 const char kTtsEngine[] = "tts_engine"; 94 const char kTtsEngine[] = "tts_engine";
99 const char kTtsGenderFemale[] = "female"; 95 const char kTtsGenderFemale[] = "female";
100 const char kTtsGenderMale[] = "male"; 96 const char kTtsGenderMale[] = "male";
101 const char kTtsVoices[] = "voices"; 97 const char kTtsVoices[] = "voices";
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 const char kInvalidPluginsPath[] = 337 const char kInvalidPluginsPath[] =
342 "Invalid value for 'plugins[*].path'."; 338 "Invalid value for 'plugins[*].path'.";
343 const char kInvalidPluginsPublic[] = 339 const char kInvalidPluginsPublic[] =
344 "Invalid value for 'plugins[*].public'."; 340 "Invalid value for 'plugins[*].public'.";
345 const char kInvalidRequirement[] = 341 const char kInvalidRequirement[] =
346 "Invalid value for requirement \"*\""; 342 "Invalid value for requirement \"*\"";
347 const char kInvalidRequirements[] = 343 const char kInvalidRequirements[] =
348 "Invalid value for 'requirements'"; 344 "Invalid value for 'requirements'";
349 const char kInvalidRunAt[] = 345 const char kInvalidRunAt[] =
350 "Invalid value for 'content_scripts[*].run_at'."; 346 "Invalid value for 'content_scripts[*].run_at'.";
351 const char kInvalidSidebar[] =
352 "Invalid value for 'sidebar'.";
353 const char kInvalidSidebarDefaultIconPath[] =
354 "Invalid value for 'sidebar.default_icon'.";
355 const char kInvalidSidebarDefaultPage[] =
356 "Invalid value for 'sidebar.default_page'.";
357 const char kInvalidSidebarDefaultTitle[] =
358 "Invalid value for 'sidebar.default_title'.";
359 const char kInvalidSignature[] = 347 const char kInvalidSignature[] =
360 "Value 'signature' is missing or invalid."; 348 "Value 'signature' is missing or invalid.";
361 const char kInvalidTheme[] = 349 const char kInvalidTheme[] =
362 "Invalid value for 'theme'."; 350 "Invalid value for 'theme'.";
363 const char kInvalidThemeColors[] = 351 const char kInvalidThemeColors[] =
364 "Invalid value for theme colors - colors must be integers"; 352 "Invalid value for theme colors - colors must be integers";
365 const char kInvalidThemeImages[] = 353 const char kInvalidThemeImages[] =
366 "Invalid value for theme images - images must be strings."; 354 "Invalid value for theme images - images must be strings.";
367 const char kInvalidThemeImagesMissing[] = 355 const char kInvalidThemeImagesMissing[] =
368 "An image specified in the theme is missing."; 356 "An image specified in the theme is missing.";
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 const char kMultipleOverrides[] = 407 const char kMultipleOverrides[] =
420 "An extension cannot override more than one page."; 408 "An extension cannot override more than one page.";
421 const char kNoWildCardsInPaths[] = 409 const char kNoWildCardsInPaths[] =
422 "Wildcards are not allowed in extent URL pattern paths."; 410 "Wildcards are not allowed in extent URL pattern paths.";
423 const char kOneUISurfaceOnly[] = 411 const char kOneUISurfaceOnly[] =
424 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; 412 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
425 const char kPermissionNotAllowed[] = 413 const char kPermissionNotAllowed[] =
426 "Access to permission '*' denied."; 414 "Access to permission '*' denied.";
427 const char kReservedMessageFound[] = 415 const char kReservedMessageFound[] =
428 "Reserved key * found in message catalog."; 416 "Reserved key * found in message catalog.";
429 const char kSidebarExperimental[] =
430 "You must request the 'experimental' permission in order to use the"
431 " Sidebar API.";
432 #if defined(OS_CHROMEOS) 417 #if defined(OS_CHROMEOS)
433 const char kIllegalPlugins[] = 418 const char kIllegalPlugins[] =
434 "Extensions cannot install plugins on Chrome OS"; 419 "Extensions cannot install plugins on Chrome OS";
435 #endif 420 #endif
436 } // namespace extension_manifest_errors 421 } // namespace extension_manifest_errors
437 422
438 namespace extension_urls { 423 namespace extension_urls {
439 std::string GetWebstoreLaunchURL() { 424 std::string GetWebstoreLaunchURL() {
440 std::string gallery_prefix = kGalleryBrowsePrefix; 425 std::string gallery_prefix = kGalleryBrowsePrefix;
441 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) 426 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL))
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 477 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
493 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; 478 const char kAppsPromoHistogram[] = "Extensions.AppsPromo";
494 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; 479 const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
495 #if defined(OS_CHROMEOS) 480 #if defined(OS_CHROMEOS)
496 const char kAccessExtensionPath[] = 481 const char kAccessExtensionPath[] =
497 "/usr/share/chromeos-assets/accessibility/extensions"; 482 "/usr/share/chromeos-assets/accessibility/extensions";
498 const char kChromeVoxDirectoryName[] = "access_chromevox"; 483 const char kChromeVoxDirectoryName[] = "access_chromevox";
499 #endif 484 #endif
500 485
501 } 486 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698