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

Unified Diff: base/android/java/src/org/chromium/base/ActivityState.java

Issue 2386323002: Add IntDef support to ApplicationStatus. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | base/android/java/src/org/chromium/base/ApplicationStatus.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ActivityState.java
diff --git a/base/android/java/src/org/chromium/base/ActivityState.java b/base/android/java/src/org/chromium/base/ActivityState.java
index 98aff62671500c1279fdcb119ba6a173a41b4f7b..f4e641356f13783806183b3578ec05f9bdbebfe3 100644
--- a/base/android/java/src/org/chromium/base/ActivityState.java
+++ b/base/android/java/src/org/chromium/base/ActivityState.java
@@ -4,10 +4,20 @@
package org.chromium.base;
+import android.support.annotation.IntDef;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
/**
* A set of states that represent the last state change of an Activity.
*/
public interface ActivityState {
+
+ @Retention(RetentionPolicy.SOURCE)
+ @IntDef({CREATED, STARTED, RESUMED, PAUSED, STOPPED, DESTROYED})
+ public @interface ActivityStateEnum {}
+
/**
* Represents Activity#onCreate().
*/
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/ApplicationStatus.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698