Add ActivityTabTabObserver
This patch introduces the ActivityTabTabObserver, a TabObserver that only watches the activity tab. When the activity tab changes, the observer automatically moves from the previous tab to the current one. Use of this API is as simple as extending the new class. The ActivityTabTabObserver itself extends the EmptyTabObserver and adds a convenience method for notifications about the observed tab changing (onObservingDifferentTab). Bug: 871279 Change-Id: I5f3358953f5fdc5f9c4f9acd790af0b4d3d2d58a Reviewed-on: https://chromium-review.googlesource.com/c/1347620 Commit-Queue: Matthew Jones <mdjones@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#611377}
Showing
Please register or sign in to comment