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

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 8 years, 11 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const char kPermissions[] = "permissions"; 79 const char kPermissions[] = "permissions";
80 const char kPlatformApp[] = "platform_app"; 80 const char kPlatformApp[] = "platform_app";
81 const char kPlugins[] = "plugins"; 81 const char kPlugins[] = "plugins";
82 const char kPluginsPath[] = "path"; 82 const char kPluginsPath[] = "path";
83 const char kPluginsPublic[] = "public"; 83 const char kPluginsPublic[] = "public";
84 const char kPublicKey[] = "key"; 84 const char kPublicKey[] = "key";
85 const char kRequirements[] = "requirements"; 85 const char kRequirements[] = "requirements";
86 const char kRunAt[] = "run_at"; 86 const char kRunAt[] = "run_at";
87 const char kShiftKey[] = "shiftKey"; 87 const char kShiftKey[] = "shiftKey";
88 const char kShortcutKey[] = "shortcutKey"; 88 const char kShortcutKey[] = "shortcutKey";
89 const char kSidebar[] = "sidebar";
90 const char kSidebarDefaultIcon[] = "default_icon";
91 const char kSidebarDefaultPage[] = "default_page";
92 const char kSidebarDefaultTitle[] = "default_title";
93 const char kSignature[] = "signature"; 89 const char kSignature[] = "signature";
94 const char kTheme[] = "theme"; 90 const char kTheme[] = "theme";
95 const char kThemeColors[] = "colors"; 91 const char kThemeColors[] = "colors";
96 const char kThemeDisplayProperties[] = "properties"; 92 const char kThemeDisplayProperties[] = "properties";
97 const char kThemeImages[] = "images"; 93 const char kThemeImages[] = "images";
98 const char kThemeTints[] = "tints"; 94 const char kThemeTints[] = "tints";
99 const char kTtsEngine[] = "tts_engine"; 95 const char kTtsEngine[] = "tts_engine";
100 const char kTtsGenderFemale[] = "female"; 96 const char kTtsGenderFemale[] = "female";
101 const char kTtsGenderMale[] = "male"; 97 const char kTtsGenderMale[] = "male";
102 const char kTtsVoices[] = "voices"; 98 const char kTtsVoices[] = "voices";
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 const char kInvalidPluginsPath[] = 334 const char kInvalidPluginsPath[] =
339 "Invalid value for 'plugins[*].path'."; 335 "Invalid value for 'plugins[*].path'.";
340 const char kInvalidPluginsPublic[] = 336 const char kInvalidPluginsPublic[] =
341 "Invalid value for 'plugins[*].public'."; 337 "Invalid value for 'plugins[*].public'.";
342 const char kInvalidRequirement[] = 338 const char kInvalidRequirement[] =
343 "Invalid value for requirement \"*\""; 339 "Invalid value for requirement \"*\"";
344 const char kInvalidRequirements[] = 340 const char kInvalidRequirements[] =
345 "Invalid value for 'requirements'"; 341 "Invalid value for 'requirements'";
346 const char kInvalidRunAt[] = 342 const char kInvalidRunAt[] =
347 "Invalid value for 'content_scripts[*].run_at'."; 343 "Invalid value for 'content_scripts[*].run_at'.";
348 const char kInvalidSidebar[] =
349 "Invalid value for 'sidebar'.";
350 const char kInvalidSidebarDefaultIconPath[] =
351 "Invalid value for 'sidebar.default_icon'.";
352 const char kInvalidSidebarDefaultPage[] =
353 "Invalid value for 'sidebar.default_page'.";
354 const char kInvalidSidebarDefaultTitle[] =
355 "Invalid value for 'sidebar.default_title'.";
356 const char kInvalidSignature[] = 344 const char kInvalidSignature[] =
357 "Value 'signature' is missing or invalid."; 345 "Value 'signature' is missing or invalid.";
358 const char kInvalidTheme[] = 346 const char kInvalidTheme[] =
359 "Invalid value for 'theme'."; 347 "Invalid value for 'theme'.";
360 const char kInvalidThemeColors[] = 348 const char kInvalidThemeColors[] =
361 "Invalid value for theme colors - colors must be integers"; 349 "Invalid value for theme colors - colors must be integers";
362 const char kInvalidThemeImages[] = 350 const char kInvalidThemeImages[] =
363 "Invalid value for theme images - images must be strings."; 351 "Invalid value for theme images - images must be strings.";
364 const char kInvalidThemeImagesMissing[] = 352 const char kInvalidThemeImagesMissing[] =
365 "An image specified in the theme is missing."; 353 "An image specified in the theme is missing.";
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 const char kMultipleOverrides[] = 408 const char kMultipleOverrides[] =
421 "An extension cannot override more than one page."; 409 "An extension cannot override more than one page.";
422 const char kNoWildCardsInPaths[] = 410 const char kNoWildCardsInPaths[] =
423 "Wildcards are not allowed in extent URL pattern paths."; 411 "Wildcards are not allowed in extent URL pattern paths.";
424 const char kOneUISurfaceOnly[] = 412 const char kOneUISurfaceOnly[] =
425 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; 413 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
426 const char kPermissionNotAllowed[] = 414 const char kPermissionNotAllowed[] =
427 "Access to permission '*' denied."; 415 "Access to permission '*' denied.";
428 const char kReservedMessageFound[] = 416 const char kReservedMessageFound[] =
429 "Reserved key * found in message catalog."; 417 "Reserved key * found in message catalog.";
430 const char kSidebarExperimental[] =
431 "You must request the 'experimental' permission in order to use the"
432 " Sidebar API.";
433 #if defined(OS_CHROMEOS) 418 #if defined(OS_CHROMEOS)
434 const char kIllegalPlugins[] = 419 const char kIllegalPlugins[] =
435 "Extensions cannot install plugins on Chrome OS"; 420 "Extensions cannot install plugins on Chrome OS";
436 #endif 421 #endif
437 } // namespace extension_manifest_errors 422 } // namespace extension_manifest_errors
438 423
439 namespace extension_urls { 424 namespace extension_urls {
440 std::string GetWebstoreLaunchURL() { 425 std::string GetWebstoreLaunchURL() {
441 std::string gallery_prefix = kGalleryBrowsePrefix; 426 std::string gallery_prefix = kGalleryBrowsePrefix;
442 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) 427 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL))
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 494 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
510 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; 495 const char kAppsPromoHistogram[] = "Extensions.AppsPromo";
511 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; 496 const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
512 #if defined(OS_CHROMEOS) 497 #if defined(OS_CHROMEOS)
513 const char kAccessExtensionPath[] = 498 const char kAccessExtensionPath[] =
514 "/usr/share/chromeos-assets/accessibility/extensions"; 499 "/usr/share/chromeos-assets/accessibility/extensions";
515 const char kChromeVoxDirectoryName[] = "access_chromevox"; 500 const char kChromeVoxDirectoryName[] = "access_chromevox";
516 #endif 501 #endif
517 502
518 } 503 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698