X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbase%2Fandroid%2Fapplication_status_listener.h;h=30048b2b5158ac81542621b1ad370d8e1b5b17f1;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=ef98985f6bcd48513125d6def5a98eed0ef493c2;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/base/android/application_status_listener.h b/src/base/android/application_status_listener.h index ef98985..30048b2 100644 --- a/src/base/android/application_status_listener.h +++ b/src/base/android/application_status_listener.h @@ -19,10 +19,18 @@ namespace android { // Define application state values like APPLICATION_STATE_VISIBLE in a // way that ensures they're always the same than their Java counterpart. +// +// Note that these states represent the most visible Activity state. +// If there are activities with states paused and stopped, only +// HAS_PAUSED_ACTIVITIES should be returned. +// +// A Java counterpart will be generated for this enum. +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base enum ApplicationState { -#define DEFINE_APPLICATION_STATE(x, y) APPLICATION_STATE_##x = y, -#include "base/android/application_state_list.h" -#undef DEFINE_APPLICATION_STATE + APPLICATION_STATE_HAS_RUNNING_ACTIVITIES = 1, + APPLICATION_STATE_HAS_PAUSED_ACTIVITIES = 2, + APPLICATION_STATE_HAS_STOPPED_ACTIVITIES = 3, + APPLICATION_STATE_HAS_DESTROYED_ACTIVITIES = 4 }; // A native helper class to listen to state changes of the Android