• Toni Barzic's avatar
    Pass gesture with screen coordinates to shelf from navigation widget · 900fea4d
    Toni Barzic authored
    Shelf::ProcessGestureEvent expects an event with in-screen coordinates
    (for example to properly calculate window transform during window drag
    from shelf). Update ShelfNavigationWidget to pass gesture event copy
    with the location in screen coordinates to Shelf::ProcessGestureEvent.
    
    Updates ShelfLayoutManagerWindowDraggingTest.DraggedMRUWindow to verify
    that the dragged window is scaled as expected during the drag, and to
    test gesture starts from navigation and status area parts of the shelf.
    
    BUG=1034145
    
    Change-Id: I839c6daaaf7577f09444e8094a4fe55dc2502e77
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985132Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
    Commit-Queue: Toni Baržić <tbarzic@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#728021}
    900fea4d
shelf_navigation_widget.cc 12.9 KB