Reland "Add ActivityTabProvider to ChromeActivity"
This is a reland of f7f910d0 with the changes from https://chromium-review.googlesource.com/c/chromium/src/+/1208293 applied. Original change's description: > Add ActivityTabProvider to ChromeActivity > > This patch adds ActivityTabProvider to ChromeActivity. This class > provides an easy mechanism for classes that care about the tab > that is currently in the foreground (i.e. not in the tab > switcher/toolbar swipe/animation layout). > > The observer provides either the activity's tab or null depending > on the state of the browser. The null event can be ignored depending > on the listener. > > The ActivityTabObserver interface only has a single method: > onActivityTabChanged(Tab t) > > When an observer is attached to the provider, onActivityTabChanged is > called on only that observer with the current tab (giving it access > without requiring a handle to a larger object). > > Bug: 871279 > Change-Id: Ice961224c6690dc79c38f5d6cb255fed4730c8ce > Reviewed-on: https://chromium-review.googlesource.com/1165489 > 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@{#588872} TBR: tedchoc Bug: 871279 Change-Id: I9c17590de19db025110cda2171cd1f8d9c1ffa57 Reviewed-on: https://chromium-review.googlesource.com/1208714Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#589018}
Showing
Please register or sign in to comment