• Sammie Quon's avatar
    Reland "overview: Fixed aspect ratio for overview items in splitview." · 8cf3df27
    Sammie Quon authored
    This is a reland of fac39a19
    
    Original change's description:
    > overview: Fixed aspect ratio for overview items in splitview.
    > 
    > Overview items now match the aspect ratio of the window bounds if they
    > get snapped. This will happen if splitview is active on either side, or
    > if the window is getting dragged close enough to an edge. A videos of
    > before and after this patch is in the bug.
    > 
    > Follow up:
    > Make this work for tablet mode with 6 or more windows. In that case
    > the positioning logic follows a different path.
    > Match the exact dimensions in the spec, this patch only does rough
    > clipping.
    > 
    > Test: added tests, manual
    > Bug: 1011973
    > Change-Id: I3d9d341c54b58d0e86440045ad1408ca3a0fd27d
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849175
    > Commit-Queue: Sammie Quon <sammiequon@chromium.org>
    > Reviewed-by: Xiaoqian Dai <xdai@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#707426}
    
    Bug: 1011973
    Change-Id: I6ff9ce5c4ecebf2a2006abd26821c5c12b82e5e3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872453Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
    Commit-Queue: Sammie Quon <sammiequon@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#707876}
    8cf3df27
overview_grid.h 20.4 KB