• Sammie Quon's avatar
    overview: Windows with extreme bounds have limits in overview mode. · c50b0d29
    Sammie Quon authored
    Sometimes windows can be very long or very tall outside of overview
    mode. These windows will either become super wide or super skinny after
    entering overvie wmode. This is not ideal as too wide -> takes up too
    much space and too skinny -> users cannot see the title.
    
    Clamps the width to be within 0.5 and 2 times the height. Windows will
    still keep their aspect ratio, so the resulting window is centered in
    the window selector item.
    
    https://screenshot.googleplex.com/dSfEciJ5CPd
    The above screenshot shows the effect of this CL (minus the blue and
    red borders which help visualize). The extreme windows will look they
    are floating since the backdrop is not implemented yet. But this cl is all
    behind a switch.
    
    Test: ash_unittests WindowSelectorTest.ExtremeWindowBounds
    Bug: 782320
    Change-Id: Id337eb091fcc4f1297ae8f864175c7f06b10b71c
    Reviewed-on: https://chromium-review.googlesource.com/869051
    Commit-Queue: Sammie Quon <sammiequon@chromium.org>
    Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
    Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#532029}
    c50b0d29
window_selector_item.h 9.81 KB