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 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 NUM_INSTALL_CAUSES | 230 NUM_INSTALL_CAUSES |
231 }; | 231 }; |
232 | 232 |
233 enum UnloadedExtensionReason { | 233 enum UnloadedExtensionReason { |
234 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 234 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
235 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 235 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
236 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 236 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
237 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 237 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
238 }; | 238 }; |
239 | 239 |
| 240 // The states that an app can be in, as reported by chrome.app.installState |
| 241 // and chrome.app.runningState. |
| 242 extern const char kAppStateNotInstalled[]; |
| 243 extern const char kAppStateInstalled[]; |
| 244 extern const char kAppStateDisabled[]; |
| 245 extern const char kAppStateRunning[]; |
| 246 extern const char kAppStateCannotRun[]; |
| 247 extern const char kAppStateReadyToRun[]; |
| 248 |
240 // Error indicating that the app notifications API is not accessible by split | 249 // Error indicating that the app notifications API is not accessible by split |
241 // mode extensions in incognito windows. | 250 // mode extensions in incognito windows. |
242 extern const char kAppNotificationsIncognitoError[]; | 251 extern const char kAppNotificationsIncognitoError[]; |
243 } // extension_misc | 252 } // extension_misc |
244 | 253 |
245 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 254 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |