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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 }; | 132 }; |
133 | 133 |
134 // List of sizes for extension icons that can be defined in the manifest. | 134 // List of sizes for extension icons that can be defined in the manifest. |
135 extern const int kExtensionIconSizes[]; | 135 extern const int kExtensionIconSizes[]; |
136 extern const size_t kNumExtensionIconSizes; | 136 extern const size_t kNumExtensionIconSizes; |
137 | 137 |
138 // List of sizes for extension icons that can be defined in the manifest. | 138 // List of sizes for extension icons that can be defined in the manifest. |
139 extern const int kExtensionActionIconSizes[]; | 139 extern const int kExtensionActionIconSizes[]; |
140 extern const size_t kNumExtensionActionIconSizes; | 140 extern const size_t kNumExtensionActionIconSizes; |
141 | 141 |
| 142 // The type of injected script. |
| 143 enum InjectedScriptType { |
| 144 // A content script specified in the extension's manifest. |
| 145 CONTENT_SCRIPT, |
| 146 // A script injected via, e.g. tabs.executeScript(). |
| 147 PROGRAMMATIC_SCRIPT |
| 148 }; |
| 149 |
| 150 // The last type of injected script; used for enum verification in IPC. |
| 151 // Update this if you add more injected script types! |
| 152 const InjectedScriptType INJECTED_SCRIPT_LAST = PROGRAMMATIC_SCRIPT; |
| 153 |
142 } // namespace extension_misc | 154 } // namespace extension_misc |
143 | 155 |
144 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 156 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |