• Nick Diego Yamane's avatar
    ash: Make capture grab optional during window dragging · 6f932f68
    Nick Diego Yamane authored
    This is required to make it possible to use ToplevelWindowEventHandler
    for handling window dragging in Exo's extended-drag sessions, e.g:
    LaCrOS Chrome's tab dragging implementation.
    
    Extended drag sessions are driven by ash::DragDropController, which sets
    capture to its internal DragDropTracker instance. This changes
    ToplevelWindowEventHandler so that it does not assumes capture must be
    set on the dragged window when its AttemptToStartDrag() functions are
    called.
    
    This CL does not imply in any functional change. It will start to be
    used in crrev.com/c/2401280 followup change.
    
    R=oshima@chromium.org
    
    Bug: 1099418
    Change-Id: I8d76f72675eb123fbd41093efa1d9643adeb482c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2483662Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
    Commit-Queue: Nick Yamane <nickdiego@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#821599}
    6f932f68
toplevel_window_event_handler.cc 28.1 KB