• chinsenj's avatar
    cros: Refactor window cycle list logic out of WmGestureHandler. · 0d150c2c
    chinsenj authored
    Currently the WmGestureHandler handles events for the wm and also the
    window cycle list. There is also the WindowCycleEventFilter which
    handles some events for the window cycle list. This was implemented
    like this to share logic for scrolling, but after further investigation
    the common logic has been determined to not warrant having the handling
    for the window cycle list to live in two separate event handlers.
    
    This CL refactors the WmGestureHandler, moving all window cycle list
    logic to the WindowCycleEventFilter.
    
    A followup CL will refactor the WindowCycleEventFilter to reorder fcns
    according to order in its header file.
    
    Test: manual + existing tests.
    Bug: 1136554
    Change-Id: I055d0533169992ad1022bdd14da9ce89d91f7e5b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606494Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
    Commit-Queue: Jeremy Chinsen <chinsenj@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#842584}
    0d150c2c
window_cycle_controller_unittest.cc 86 KB