Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6834)

Unified Diff: chrome/common/extensions/extension_constants.h

Issue 10174001: Add an API for hosted apps to check their install and running states. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/app.json ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_constants.h
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index 0c11ff8d992ddba12d5accf64fc4cf7a8e6c4371..bad124cda4c36fd10d63a946a7406083a193c1bd 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -239,6 +239,15 @@ namespace extension_misc {
UNLOAD_REASON_TERMINATE, // Extension has terminated.
};
+ // The states that an app can be in, as reported by chrome.app.installState
+ // and chrome.app.runningState.
+ extern const char kAppStateNotInstalled[];
+ extern const char kAppStateInstalled[];
+ extern const char kAppStateDisabled[];
+ extern const char kAppStateRunning[];
+ extern const char kAppStateCannotRun[];
+ extern const char kAppStateReadyToRun[];
+
// Error indicating that the app notifications API is not accessible by split
// mode extensions in incognito windows.
extern const char kAppNotificationsIncognitoError[];
« no previous file with comments | « chrome/common/extensions/api/app.json ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698