Descriptionandroid: Improve ActivityStatus and add ChromiumActivity.
The ActivityStatus class used to track activity state changes is too basic
for some usage scenarios.
This patch does the following:
- Augment ActivityStatus with a new StateListener type that can be
registered to listen to all activity state changes.
Also add getActivity(), getState(), registerStateListener()
and unregisterStateListener() as static method.
- Add a new ChromiumActivity class that all Chromium main activities
should sub-class, to ensure that the ActivityStatus state is updated
appropriately.
- Modify all main activities in the Chromium code base to extend
from ChromiumActivity instead of Activity.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171789
Patch Set 1 #
Total comments: 22
Patch Set 2 : address nits #
Total comments: 4
Patch Set 3 : fix "if" indentations #Messages
Total messages: 13 (0 generated)
|