• Andrew Xu's avatar
    Fix the issue that shelf button does not respond to tap events. · 73d56b21
    Andrew Xu authored
    When showing the system tray with the shortcut, the auto-hide shelf is
    shown and the system tray gets the focus. Then tapping on the shelf
    button will change the focus and system tray (including shelf)
    is dismissed. The shelf button starts to handle the gesture event after
    the shelf is closed. As a result, the shelf button does not respond to
    gesture events.
    
    In this CL, when a touch-pressing event comes and shelf is visible,
    ShelfBezelEventHandler holds the shelf until the touch-releasing event
    arrives. It is effective because ShelfBezelEventHandler receives the
    event before SystemTrayEventFilter.
    
    Bug: 902680
    Change-Id: Id04780e2211c0ab19691db811496e703950f81d8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1639082Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
    Commit-Queue: Andrew Xu <andrewxu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#666302}
    73d56b21
shelf_bezel_event_handler.cc 3.08 KB