Chromium Code Reviews
Description[Home] Hide sheet when back pressed
This change allows a single press of the back button to close the
bottom sheet if expanded via omnibox focus. This allows a user to
easily return to the page if they decide against using the omnibox.
The mechanism for detecting this case is simple: if the placeholder
content is showing, defocus and hide everything with one press. The
reason this works is because the placeholder sheet content will only
be showing if the user expanded the sheet from the peeking state by
focusing the omnibox.
BUG=716224
Review-Url: https://codereview.chromium.org/2896483003
Cr-Commit-Position: refs/heads/master@{#473212}
Committed: https://chromium.googlesource.com/chromium/src/+/e309521b316083148b2b2073fb589a086e010bc7
Patch Set 1 #Patch Set 2 : extra check #Messages
Total messages: 11 (5 generated)
|