| 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 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const char kSettingsAppId[] = "ennkphjdgehloodpbhlhldgbnhmacadg"; | 122 const char kSettingsAppId[] = "ennkphjdgehloodpbhlhldgbnhmacadg"; |
| 123 const char kStreamsPrivateTestExtensionId[] = | 123 const char kStreamsPrivateTestExtensionId[] = |
| 124 "oickdpebdnfbgkcaoklfcdhjniefkcji"; | 124 "oickdpebdnfbgkcaoklfcdhjniefkcji"; |
| 125 const char kWebStoreAppId[] = "ahfgeienlihckogmohjhadlkjgocpleb"; | 125 const char kWebStoreAppId[] = "ahfgeienlihckogmohjhadlkjgocpleb"; |
| 126 const char kYoutubeAppId[] = "blpcfgokakmgnkcojhhkbfbldkacnbeo"; | 126 const char kYoutubeAppId[] = "blpcfgokakmgnkcojhhkbfbldkacnbeo"; |
| 127 const char kInAppPaymentsSupportAppId[] = "nmmhkkegccagdldgiimedpiccmgmieda"; | 127 const char kInAppPaymentsSupportAppId[] = "nmmhkkegccagdldgiimedpiccmgmieda"; |
| 128 | 128 |
| 129 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; | 129 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; |
| 130 const char kPlatformAppLaunchHistogram[] = "Apps.AppLaunch"; | 130 const char kPlatformAppLaunchHistogram[] = "Apps.AppLaunch"; |
| 131 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
| 132 const char kChromeVoxExtensionPath[] = "chromeos/chromevox"; | |
| 133 // The extension id for the built-in component extension. | 132 // The extension id for the built-in component extension. |
| 134 const char kChromeVoxExtensionId[] = | 133 const char kChromeVoxExtensionId[] = |
| 135 "mndnfokpggljbaajbnioimlmbfngpief"; | 134 "mndnfokpggljbaajbnioimlmbfngpief"; |
| 135 const char kChromeVoxExtensionPath[] = "chromeos/chromevox"; |
| 136 const char kConnectivityDiagnosticsPath[] = | 136 const char kConnectivityDiagnosticsPath[] = |
| 137 "/usr/share/chromeos-assets/connectivity_diagnostics"; | 137 "/usr/share/chromeos-assets/connectivity_diagnostics"; |
| 138 const char kConnectivityDiagnosticsLauncherPath[] = | 138 const char kConnectivityDiagnosticsLauncherPath[] = |
| 139 "/usr/share/chromeos-assets/connectivity_diagnostics_launcher"; | 139 "/usr/share/chromeos-assets/connectivity_diagnostics_launcher"; |
| 140 const char kSpeechSynthesisExtensionPath[] = | 140 const char kSpeechSynthesisExtensionPath[] = |
| 141 "/usr/share/chromeos-assets/speech_synthesis/patts"; | 141 "/usr/share/chromeos-assets/speech_synthesis/patts"; |
| 142 const char kSpeechSynthesisExtensionId[] = | 142 const char kSpeechSynthesisExtensionId[] = |
| 143 "gjjabgpgjpampikjhjpfhneeoapjbjaf"; | 143 "gjjabgpgjpampikjhjpfhneeoapjbjaf"; |
| 144 const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj"; | 144 const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj"; |
| 145 const char kFirstRunDialogId[] = "jdgcneonijmofocbhmijhacgchbihela"; | 145 const char kFirstRunDialogId[] = "jdgcneonijmofocbhmijhacgchbihela"; |
| 146 #else | 146 #else |
| 147 // The extension id for the web store extension. | 147 // The extension id for the web store extension. |
| 148 const char kChromeVoxExtensionId[] = | 148 const char kChromeVoxExtensionId[] = |
| 149 "kgejglhpjiefppelpmljglcjbhoiplfn"; | 149 "kgejglhpjiefppelpmljglcjbhoiplfn"; |
| 150 #endif | 150 #endif |
| 151 | 151 |
| 152 const char kAppStateNotInstalled[] = "not_installed"; | 152 const char kAppStateNotInstalled[] = "not_installed"; |
| 153 const char kAppStateInstalled[] = "installed"; | 153 const char kAppStateInstalled[] = "installed"; |
| 154 const char kAppStateDisabled[] = "disabled"; | 154 const char kAppStateDisabled[] = "disabled"; |
| 155 const char kAppStateRunning[] = "running"; | 155 const char kAppStateRunning[] = "running"; |
| 156 const char kAppStateCannotRun[] = "cannot_run"; | 156 const char kAppStateCannotRun[] = "cannot_run"; |
| 157 const char kAppStateReadyToRun[] = "ready_to_run"; | 157 const char kAppStateReadyToRun[] = "ready_to_run"; |
| 158 | 158 |
| 159 const char kMediaFileSystemPathPart[] = "_"; | 159 const char kMediaFileSystemPathPart[] = "_"; |
| 160 | 160 |
| 161 const int kExtensionIconSizes[] = { | |
| 162 EXTENSION_ICON_GIGANTOR, // 512 | |
| 163 EXTENSION_ICON_EXTRA_LARGE, // 256 | |
| 164 EXTENSION_ICON_LARGE, // 128 | |
| 165 EXTENSION_ICON_MEDIUM, // 48 | |
| 166 EXTENSION_ICON_SMALL, // 32 | |
| 167 EXTENSION_ICON_SMALLISH, // 24 | |
| 168 EXTENSION_ICON_BITTY, // 16 | |
| 169 // Additional 2x resources to load. | |
| 170 2 * EXTENSION_ICON_MEDIUM, // 96 | |
| 171 2 * EXTENSION_ICON_SMALL // 64 | |
| 172 }; | |
| 173 | |
| 174 const size_t kNumExtensionIconSizes = | |
| 175 arraysize(kExtensionIconSizes); | |
| 176 | |
| 177 const int kExtensionActionIconSizes[] = { | |
| 178 EXTENSION_ICON_ACTION, // 19, | |
| 179 2 * EXTENSION_ICON_ACTION // 38 | |
| 180 }; | |
| 181 | |
| 182 const size_t kNumExtensionActionIconSizes = | |
| 183 arraysize(kExtensionActionIconSizes); | |
| 184 | |
| 185 } // namespace extension_misc | 161 } // namespace extension_misc |
| OLD | NEW |