commit | 59f09f7955cffb66488691307dabc3e5633bef68 | [log] [tgz] |
---|---|---|
author | Eliot Courtney <edcourtney@google.com> | Thu Nov 01 05:49:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 01 05:49:14 2018 |
tree | f09e254c14287d713b394c246e5efc86883042d0 | |
parent | 05cec5c6fd7ee28f9917e788a9e0708fa1940a5b [diff] |
Implement swipe-to-dismiss for PIP windows. in the direction of initial movement and then locked on the axis off-screen and didn't dismiss if not. off-screen. screen doesn't allow a swipe-to-dismiss to initiate. the screen correctly disables initiation of another swipe-to-dismiss for the rest of the drag-to-move. Bug: 883114 Bug: 841886 Bug: b/115291749 Test: Added unittests Test: tried swipe-to-dismiss from all four corners, it started swiping Test: Tried swiping on the edges of the screen Test: Tried swiping around 50% area - correctly dismissed if >50% area Test: Popped back after swiping out with less than 50% of the area Test: Starting drag-to-move while not on the edge or corner of the Test: Starting to swipe-to-dismiss but then dragging into the middle of Change-Id: I350a8824a0d21162f7356a01632cd4787bd0392c Reviewed-on: https://chromium-review.googlesource.com/c/1221646 Commit-Queue: Eliot Courtney <edcourtney@chromium.org> Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Cr-Commit-Position: refs/heads/master@{#604524}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .