[go: nahoru, domu]

[TTS] Fix reparenting and add Test case.

Updates ContextualSearchTabHelper to handle reparenting correctly,
and improve usage of the mTab member to make that usage more explicit.
    
Adds a new TabObserver method onActivityAttachmentChanged to notify Tabs
when they've been attached or detached from an Activity.

Also refactor mulitwindow test utility methods into a separate utility
class: MultiWindowTestUtils.java, based mostly on static functions
from MultiWindowUtilsTest.java.

BUG=775813, 778540

Change-Id: I460bc3a91494f52aceb77c4880105caadb5c354d
Reviewed-on: https://chromium-review.googlesource.com/738923
Commit-Queue: Donn Denman <donnd@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#514328}
14 files changed