• Jun Mukai's avatar
    Allow notifying injected event which turns out invalid · 51258edc
    Jun Mukai authored
    Some tab-dragging test cases never finishes on SingleProcessMash,
    and it turns out that WindowEventDispatcher thinks some
    TOUCH_RELEASED events can be invalid; it won't generate any
    gestures and does not do anything. In that case, OnEvent()
    won't be called and any other methods are not called, therefore
    InjectedEventHandler couldn't notify it's done.
    
    This CL adds a new method to WindowEventDispatcherObserver to
    catch such cases and allow handling it's done.
    
    BUG=890071
    TEST=see the filter update
    
    Change-Id: I6dcda9af52e5cbd4013b8d228bda2e9b1f14bdd6
    Reviewed-on: https://chromium-review.googlesource.com/c/1316767
    Commit-Queue: Jun Mukai <mukai@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#605531}
    51258edc
window_event_dispatcher.cc 39.7 KB