Index: base/android/application_status_listener.h |
diff --git a/base/android/application_status_listener.h b/base/android/application_status_listener.h |
index 30048b2b5158ac81542621b1ad370d8e1b5b17f1..866ec8be9340ee73c1839f651bc742c0569efca7 100644 |
--- a/base/android/application_status_listener.h |
+++ b/base/android/application_status_listener.h |
@@ -27,6 +27,7 @@ namespace android { |
// A Java counterpart will be generated for this enum. |
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base |
enum ApplicationState { |
+ APPLICATION_STATE_UNKNOWN = 0, |
APPLICATION_STATE_HAS_RUNNING_ACTIVITIES = 1, |
APPLICATION_STATE_HAS_PAUSED_ACTIVITIES = 2, |
APPLICATION_STATE_HAS_STOPPED_ACTIVITIES = 3, |
@@ -73,6 +74,9 @@ class BASE_EXPORT ApplicationStatusListener { |
// Internal use only: must be public to be called from JNI and unit tests. |
static void NotifyApplicationStateChange(ApplicationState state); |
+ // Expose jni call for ApplicationStatus.getStateForApplication. |
+ static ApplicationState GetState(); |
+ |
private: |
void Notify(ApplicationState state); |