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

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

Issue 159173002: Refactor ActivityStatus to not store current activity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..98aff62671500c1279fdcb119ba6a173a41b4f7b
--- /dev/null
+++ b/base/android/java/src/org/chromium/base/ActivityState.java
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.base;
+
+/**
+ * A set of states that represent the last state change of an Activity.
+ */
+public interface ActivityState {
+ /**
+ * Represents Activity#onCreate().
+ */
+ public final int CREATED = 1;
+
+ /**
+ * Represents Activity#onStart().
+ */
+ public final int STARTED = 2;
+
+ /**
+ * Represents Activity#onResume().
+ */
+ public final int RESUMED = 3;
+
+ /**
+ * Represents Activity#onPause().
+ */
+ public final int PAUSED = 4;
+
+ /**
+ * Represents Activity#onStop().
+ */
+ public final int STOPPED = 5;
+
+ /**
+ * Represents Activity#onDestroy(). This is also used when the state of an Activity is unknown.
+ */
+ public final int DESTROYED = 6;
+}

Powered by Google App Engine
This is Rietveld 408576698