|
Add base/android/activity_status.cc
This patch adds a small thread-safe wrapper around the Java
org.chromium.base.ActivityStatus that can be used to listen to activity state
changes from native code.
This uses a base::ObserverListThreadSafe to guarantee that listeners can be
registered on any threads, and that their OnActivityStateChange() method will
always be called on the thread that created them.
+ Ensure both C++ and Java always use the same constants when it comes to
ActivityState values.
TBR=digit@chromium.org
BUG= 233536
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198124
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+386 lines, -8 lines) |
Patch |
 |
A |
base/android/activity_state_list.h
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/android/activity_status.h
|
View
|
1
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/android/activity_status.cc
|
View
|
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/android/activity_status_unittest.cc
|
View
|
1
|
1 chunk |
+129 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/android/base_jni_registrar.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
A |
base/android/java/src/org/chromium/base/ActivityState.template
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/android/java/src/org/chromium/base/ActivityStatus.java
|
View
|
|
2 chunks |
+38 lines, -7 lines |
0 comments
|
Download
|
 |
M |
base/base.gyp
|
View
|
1
2
|
4 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/base.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|