Description[Home] Add pull-handle to bottom toolbar
This change adds a pill-shaped handle to the bottom toolbar for Chrome
Home indicating that it can be pulled up. To avoid refactoring large
sections of code this is done in a relatively unorthodox way. The
height of the toolbar needs to increase but the view hierarchy is
uncondusive to change. So instead of wrapping the toolbar controls
in a bottom-aligned view, a top margin is programmatically added when
the views are inflated.
The handle itself is programatically drawn and exists as an immediate
child of the ViewResourceFrameLayout. This allows it to be captured in
the screenshot used by the compositor and for it to be drawn on top
of the other toolbar views (particularly the location bar). Both a
normal and incognito version of the handle are maintained by the
BottomToolbarPhone class.
BUG=692865
Review-Url: https://codereview.chromium.org/2744763005
Cr-Commit-Position: refs/heads/master@{#457299}
Committed: https://chromium.googlesource.com/chromium/src/+/0f3941c30bdb81dcb934d6a12d84859eedebff0e
Patch Set 1 #Patch Set 2 : fix shadow and clean up #Patch Set 3 : correctly apply patch... #Patch Set 4 : nits #
Total comments: 10
Patch Set 5 : remove toolbar patch dependency #
Total comments: 4
Patch Set 6 : address comments #
Total comments: 6
Patch Set 7 : address comments #Patch Set 8 : findbugs nit picking #
Messages
Total messages: 23 (9 generated)
|