• Ryan Daum's avatar
    [chromecast] Allow touch action in side swipe margins. · 00f3cdd8
    Ryan Daum authored
    Changes cast system gesture handling so that events which happen on
    the side swipe margin are replayed when the finger is lifted before
    leaving the margin area, allowing UI elements to be accessed in the
    margin.
    
    Note: A refactoring of the side swipe detection into an EventRewriter
    was necessary to allow for the redispatching of the stashed
    events. The side swipe detection was factored out into a separate
    class, leaving the tap/press handling in the EventHandler.
    
    Bug: internal b/111304882
    Test: manual and unit tests
    Change-Id: If446ed0d97bc9e5f127c311e98f0ed8289071dd3
    Reviewed-on: https://chromium-review.googlesource.com/1141060Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
    Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
    Commit-Queue: Ryan Daum <rdaum@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#576150}
    00f3cdd8
cast_system_gesture_event_handler.h 2.41 KB