| 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } // namespace extension_manifest_keys | 118 } // namespace extension_manifest_keys |
| 119 | 119 |
| 120 // Some values expected in manifests. | 120 // Some values expected in manifests. |
| 121 namespace extension_manifest_values { | 121 namespace extension_manifest_values { |
| 122 extern const char kIncognitoSplit[]; | 122 extern const char kIncognitoSplit[]; |
| 123 extern const char kIncognitoSpanning[]; | 123 extern const char kIncognitoSpanning[]; |
| 124 extern const char kIntentDispositionWindow[]; | 124 extern const char kIntentDispositionWindow[]; |
| 125 extern const char kIntentDispositionInline[]; | 125 extern const char kIntentDispositionInline[]; |
| 126 extern const char kIsolatedStorage[]; | 126 extern const char kIsolatedStorage[]; |
| 127 extern const char kLaunchContainerPanel[]; | 127 extern const char kLaunchContainerPanel[]; |
| 128 extern const char kLaunchContainerShell[]; |
| 128 extern const char kLaunchContainerTab[]; | 129 extern const char kLaunchContainerTab[]; |
| 129 extern const char kLaunchContainerWindow[]; | 130 extern const char kLaunchContainerWindow[]; |
| 130 extern const char kPageActionTypePermanent[]; | 131 extern const char kPageActionTypePermanent[]; |
| 131 extern const char kPageActionTypeTab[]; | 132 extern const char kPageActionTypeTab[]; |
| 132 extern const char kRunAtDocumentEnd[]; | 133 extern const char kRunAtDocumentEnd[]; |
| 133 extern const char kRunAtDocumentIdle[]; | 134 extern const char kRunAtDocumentIdle[]; |
| 134 extern const char kRunAtDocumentStart[]; | 135 extern const char kRunAtDocumentStart[]; |
| 135 } // namespace extension_manifest_values | 136 } // namespace extension_manifest_values |
| 136 | 137 |
| 137 // Error messages returned from Extension::InitFromValue(). | 138 // Error messages returned from Extension::InitFromValue(). |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 extern const char kInvalidIntentPath[]; | 190 extern const char kInvalidIntentPath[]; |
| 190 extern const char kInvalidIntents[]; | 191 extern const char kInvalidIntents[]; |
| 191 extern const char kInvalidIntentType[]; | 192 extern const char kInvalidIntentType[]; |
| 192 extern const char kInvalidIntentTitle[]; | 193 extern const char kInvalidIntentTitle[]; |
| 193 extern const char kInvalidIsolation[]; | 194 extern const char kInvalidIsolation[]; |
| 194 extern const char kInvalidIsolationValue[]; | 195 extern const char kInvalidIsolationValue[]; |
| 195 extern const char kInvalidJs[]; | 196 extern const char kInvalidJs[]; |
| 196 extern const char kInvalidJsList[]; | 197 extern const char kInvalidJsList[]; |
| 197 extern const char kInvalidKey[]; | 198 extern const char kInvalidKey[]; |
| 198 extern const char kInvalidLaunchContainer[]; | 199 extern const char kInvalidLaunchContainer[]; |
| 200 extern const char kInvalidLaunchContainerForNonPlatform[]; |
| 199 extern const char kInvalidLaunchContainerForPlatform[]; | 201 extern const char kInvalidLaunchContainerForPlatform[]; |
| 200 extern const char kInvalidLaunchHeight[]; | 202 extern const char kInvalidLaunchHeight[]; |
| 201 extern const char kInvalidLaunchHeightContainer[]; | 203 extern const char kInvalidLaunchHeightContainer[]; |
| 202 extern const char kInvalidLaunchLocalPath[]; | 204 extern const char kInvalidLaunchLocalPath[]; |
| 203 extern const char kInvalidLaunchWebURL[]; | 205 extern const char kInvalidLaunchWebURL[]; |
| 204 extern const char kInvalidLaunchWidth[]; | 206 extern const char kInvalidLaunchWidth[]; |
| 205 extern const char kInvalidLaunchWidthContainer[]; | 207 extern const char kInvalidLaunchWidthContainer[]; |
| 206 extern const char kInvalidManifest[]; | 208 extern const char kInvalidManifest[]; |
| 207 extern const char kInvalidManifestVersion[]; | 209 extern const char kInvalidManifestVersion[]; |
| 208 extern const char kInvalidMatch[]; | 210 extern const char kInvalidMatch[]; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 const uint8 kSignatureAlgorithm[15] = { | 345 const uint8 kSignatureAlgorithm[15] = { |
| 344 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, | 346 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, |
| 345 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00 | 347 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00 |
| 346 }; | 348 }; |
| 347 | 349 |
| 348 // Don't remove items or change the order of this enum. It's used in | 350 // Don't remove items or change the order of this enum. It's used in |
| 349 // histograms and preferences. | 351 // histograms and preferences. |
| 350 enum LaunchContainer { | 352 enum LaunchContainer { |
| 351 LAUNCH_WINDOW, | 353 LAUNCH_WINDOW, |
| 352 LAUNCH_PANEL, | 354 LAUNCH_PANEL, |
| 353 LAUNCH_TAB | 355 LAUNCH_TAB, |
| 356 LAUNCH_SHELL |
| 354 }; | 357 }; |
| 355 | 358 |
| 356 // The name of the apps promo histogram. | 359 // The name of the apps promo histogram. |
| 357 extern const char kAppsPromoHistogram[]; | 360 extern const char kAppsPromoHistogram[]; |
| 358 | 361 |
| 359 // The buckets used in the apps promo histogram. | 362 // The buckets used in the apps promo histogram. |
| 360 enum AppsPromoBuckets { | 363 enum AppsPromoBuckets { |
| 361 PROMO_LAUNCH_APP, | 364 PROMO_LAUNCH_APP, |
| 362 PROMO_LAUNCH_WEB_STORE, | 365 PROMO_LAUNCH_WEB_STORE, |
| 363 PROMO_CLOSE, | 366 PROMO_CLOSE, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 454 |
| 452 enum UnloadedExtensionReason { | 455 enum UnloadedExtensionReason { |
| 453 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 456 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
| 454 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 457 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
| 455 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 458 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
| 456 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 459 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
| 457 }; | 460 }; |
| 458 } // extension_misc | 461 } // extension_misc |
| 459 | 462 |
| 460 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 463 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |