• Xiaoqian Dai's avatar
    Move window finalization handling logic to the same function. · 7a2732fd
    Xiaoqian Dai authored
    Currently when swiping up from bottom to drag a window, the window can
    be ended in 4 different places: restore to its old position, go to home
    screen, drop in overview, or snap in splitview. These operations are
    handled in different places, with the first 2 handled in
    FinalizedDraggedWindow() function and the latter 2 handled in
    EndDrag() function. The reason for it to avoid window state change to
    interfere with shelf state change, see https://crrev.com/c/2004052.
    
    This CL moves the logic of window finalization operations together while
    keeping the existing logic unchanged.
    
    This CL doesn't have any functional change.
    
    Bug: None
    Change-Id: Ib2c4e866893c51ee952725a3b80c701f8b02120a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2320770Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
    Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#792108}
    7a2732fd
drag_window_from_shelf_controller.h 8.35 KB