Chromium Code Reviews
Description"Move to other window" improvements.
This makes several improvements and bug fixes to the unfinished "move to
other window" feature:
- Unifies logic for tab detaching and activity launching.
Tab.detachAndStartReparenting() now handles the process of detaching
the tab from the current activity and launching the new host
activity. This de-duplicates some logic that existed in
CustomTabActivity and ChromeTabbedActivity.
- Fixes white flicker when reparenting into an already-visible activity.
See change in CompositorViewHolder.
- Moving NativePages now works. ExternalNavigationDelegateImpl nows
uses a better way to get the application context that works for
native pages, and the intent now has trusted extras so
chrome-native:// URLs will be accepted.
- Various UI elements now update themselves correctly when a tab is moved:
* ChromeTabbedActivity closes if homepage is enabled and the last tab
was moved
* The toolbar state (e.g. the tab count number) is updated when a
tab is moved
* The tablet empty background view is shown when the last tab is
moved.
BUG=595889
Committed: https://crrev.com/9e77195b5ba9b99e62af0248e103add25eee3aad
Cr-Commit-Position: refs/heads/master@{#385916}
Patch Set 1 #
Total comments: 4
Patch Set 2 : fixed double intent issue with custom tabs; addressed comments #Patch Set 3 : fix legit findbugs failure #Dependent Patchsets: Messages
Total messages: 15 (6 generated)
|