Skip to content
Commit 5ef3eeb6 authored by Cattalyya Nuengsigkapian's avatar Cattalyya Nuengsigkapian Committed by Chromium LUCI CQ
Browse files

vsplit: Display rotation and transition for top/bottom-snapped window

- Use snap_ratio and `GetSnappedWindowBounds()` to update snapped
window bounds in `AdjustSnappedBounds()` during tablet <> clamshell mode
transition and screen rotation. Thus, rotating display in clamshell mode
can now switch between vertically-snapped and horizontally-snapped
window layout.
- Rename |snapped_width_ratio_| to |snap_ratio_|.
- `UpdateSnappedWidthRatio()` -> `UpdateSnapRatio()`.
- `GetCurrentSnappedWidthRatio()` -> `GetCurrentSnapRatio()`.

Bug: 1236152
Change-Id: Iba20ff2ce1f3e185dc5ab76c35938c4d8080b470
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3054548


Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Cattalyya Nuengsigkapian <cattalyya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908294}
parent 1112d965
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment