Description[Home] Show bottom nav above keyboard
This change allows the bottom navigation to be shown above the
keyboard when the bottom sheet is open. An onLayoutChange event is
triggered when the keyboard is shown or hidden. The height of the
window and keyboard are determined and sent as a new event,
"onSheetLayout" to any BottomSheetObservers.
When the keyboard is focused while viewing any of the bottom sheet
contents, extra padding is added to the content container. This
shrinks the view so it remains visible while allowing the bottom
sheet to retain it's original height. The result of this is seeing
the default tab theme color behind the keyboard when it appears
instead of seeing black flashes.
Since the navigation is now visible when the omnibox is focused from
the peeking state (thus showing the placeholder sheet content) the
bottom nav shows none of the tabs as selected. This allows users to
view suggestions from this state if they wish to.
BUG=706249
Review-Url: https://codereview.chromium.org/2892953005
Cr-Commit-Position: refs/heads/master@{#474363}
Committed: https://chromium.googlesource.com/chromium/src/+/e713cd4c5b8995854329af72ea0ec3be7eb945f8
Patch Set 1 #Patch Set 2 : clean up #Patch Set 3 : fix bug #
Total comments: 8
Patch Set 4 : address comments #Patch Set 5 : rebase #Patch Set 6 : scroll transitions to suggestions #
Total comments: 2
Patch Set 7 : address comment #
Total comments: 6
Patch Set 8 : address comments #
Total comments: 4
Patch Set 9 : address comments #Patch Set 10 : rebase; remove window delegate #
Messages
Total messages: 24 (9 generated)
|