| 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 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_ | 5 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_ |
| 6 #define EXTENSIONS_COMMON_CONSTANTS_H_ | 6 #define EXTENSIONS_COMMON_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } // namespace extensions | 103 } // namespace extensions |
| 104 | 104 |
| 105 namespace extension_misc { | 105 namespace extension_misc { |
| 106 | 106 |
| 107 // Matches chrome.windows.WINDOW_ID_NONE. | 107 // Matches chrome.windows.WINDOW_ID_NONE. |
| 108 const int kUnknownWindowId = -1; | 108 const int kUnknownWindowId = -1; |
| 109 | 109 |
| 110 // Matches chrome.windows.WINDOW_ID_CURRENT. | 110 // Matches chrome.windows.WINDOW_ID_CURRENT. |
| 111 const int kCurrentWindowId = -2; | 111 const int kCurrentWindowId = -2; |
| 112 | 112 |
| 113 // Note: this structure is an ASN.1 which encodes the algorithm used | |
| 114 // with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447). | |
| 115 // It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL } | |
| 116 const uint8 kSignatureAlgorithm[15] = {0x30, 0x0d, 0x06, 0x09, 0x2a, | |
| 117 0x86, 0x48, 0x86, 0xf7, 0x0d, | |
| 118 0x01, 0x01, 0x05, 0x05, 0x00}; | |
| 119 | |
| 120 // NOTE: If you change this list, you should also change kExtensionIconSizes | 113 // NOTE: If you change this list, you should also change kExtensionIconSizes |
| 121 // in cc file. | 114 // in cc file. |
| 122 enum ExtensionIcons { | 115 enum ExtensionIcons { |
| 123 EXTENSION_ICON_GIGANTOR = 512, | 116 EXTENSION_ICON_GIGANTOR = 512, |
| 124 EXTENSION_ICON_EXTRA_LARGE = 256, | 117 EXTENSION_ICON_EXTRA_LARGE = 256, |
| 125 EXTENSION_ICON_LARGE = 128, | 118 EXTENSION_ICON_LARGE = 128, |
| 126 EXTENSION_ICON_MEDIUM = 48, | 119 EXTENSION_ICON_MEDIUM = 48, |
| 127 EXTENSION_ICON_SMALL = 32, | 120 EXTENSION_ICON_SMALL = 32, |
| 128 EXTENSION_ICON_SMALLISH = 24, | 121 EXTENSION_ICON_SMALLISH = 24, |
| 129 EXTENSION_ICON_ACTION = 19, | 122 EXTENSION_ICON_ACTION = 19, |
| 130 EXTENSION_ICON_BITTY = 16, | 123 EXTENSION_ICON_BITTY = 16, |
| 131 EXTENSION_ICON_INVALID = 0, | 124 EXTENSION_ICON_INVALID = 0, |
| 132 }; | 125 }; |
| 133 | 126 |
| 134 // List of sizes for extension icons that can be defined in the manifest. | 127 // List of sizes for extension icons that can be defined in the manifest. |
| 135 extern const int kExtensionIconSizes[]; | 128 extern const int kExtensionIconSizes[]; |
| 136 extern const size_t kNumExtensionIconSizes; | 129 extern const size_t kNumExtensionIconSizes; |
| 137 | 130 |
| 138 // List of sizes for extension icons that can be defined in the manifest. | 131 // List of sizes for extension icons that can be defined in the manifest. |
| 139 extern const int kExtensionActionIconSizes[]; | 132 extern const int kExtensionActionIconSizes[]; |
| 140 extern const size_t kNumExtensionActionIconSizes; | 133 extern const size_t kNumExtensionActionIconSizes; |
| 141 | 134 |
| 142 } // namespace extension_misc | 135 } // namespace extension_misc |
| 143 | 136 |
| 144 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 137 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
| OLD | NEW |