| OLD | NEW |
| 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 #include "chrome/common/extensions/extension_manifest_constants.h" | 6 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/common/extensions/extension_icon_set.h" |
| 13 #include "chrome/common/net/url_util.h" | 14 #include "chrome/common/net/url_util.h" |
| 14 | 15 |
| 15 namespace extension_urls { | 16 namespace extension_urls { |
| 16 | 17 |
| 17 std::string GetWebstoreLaunchURL() { | 18 std::string GetWebstoreLaunchURL() { |
| 18 std::string gallery_prefix = kGalleryBrowsePrefix; | 19 std::string gallery_prefix = kGalleryBrowsePrefix; |
| 19 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) | 20 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) |
| 20 gallery_prefix = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 21 gallery_prefix = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 21 switches::kAppsGalleryURL); | 22 switches::kAppsGalleryURL); |
| 22 if (EndsWith(gallery_prefix, "/", true)) | 23 if (EndsWith(gallery_prefix, "/", true)) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const char kAppStateRunning[] = "running"; | 139 const char kAppStateRunning[] = "running"; |
| 139 const char kAppStateCannotRun[] = "cannot_run"; | 140 const char kAppStateCannotRun[] = "cannot_run"; |
| 140 const char kAppStateReadyToRun[] = "ready_to_run"; | 141 const char kAppStateReadyToRun[] = "ready_to_run"; |
| 141 | 142 |
| 142 const char kMediaFileSystemPathPart[] = "_"; | 143 const char kMediaFileSystemPathPart[] = "_"; |
| 143 | 144 |
| 144 const char kAppNotificationsIncognitoError[] = | 145 const char kAppNotificationsIncognitoError[] = |
| 145 "This API is not accessible by 'split' mode " | 146 "This API is not accessible by 'split' mode " |
| 146 "extensions in incognito windows."; | 147 "extensions in incognito windows."; |
| 147 | 148 |
| 149 const int kExtensionIconSizes[] = { |
| 150 ExtensionIconSet::EXTENSION_ICON_GIGANTOR, // 512 |
| 151 ExtensionIconSet::EXTENSION_ICON_EXTRA_LARGE, // 256 |
| 152 ExtensionIconSet::EXTENSION_ICON_LARGE, // 128 |
| 153 ExtensionIconSet::EXTENSION_ICON_MEDIUM, // 48 |
| 154 ExtensionIconSet::EXTENSION_ICON_SMALL, // 32 |
| 155 ExtensionIconSet::EXTENSION_ICON_SMALLISH, // 24 |
| 156 ExtensionIconSet::EXTENSION_ICON_BITTY // 16 |
| 157 }; |
| 158 |
| 159 const size_t kNumExtensionIconSizes = |
| 160 arraysize(kExtensionIconSizes); |
| 161 |
| 148 } // namespace extension_misc | 162 } // namespace extension_misc |
| OLD | NEW |