forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose the drag image on drop callback
The proposed cl, attaches a new callback similar to the regular drop callback, but with the intention to access the drag image layer that in turn, the view where an item is dropped will be able to animate. DragDropController recreates the old drag image layer into its own layer owner, which will be passed around to the object that requests it. The implementations of DragDropDelegate and views::View will be able to define the appropriate callback that will be invoked always preferring an existing DropCallback over DropCallbackWithAnimation. The drag and drop controller is modified to invoke the appropriate callback and to pass the drag image layer owner through this invocation if needed. This CL also moves DragImageView to create a unique_ptr<views::Widget> rather than a UniqueWidgetPtr. Bug: b:261985897 Change-Id: Ia4c049f3a80c9c7bac76d873827ce1f015af5088 Low-Coverage-Reason: virtual methods Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4264073 Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Commit-Queue: Ana Salazar <anasalazar@chromium.org> Reviewed-by: Allen Bauer <kylixrd@chromium.org> Cr-Commit-Position: refs/heads/main@{#1109259}
- Loading branch information
Ana Salazar
authored and
Chromium LUCI CQ
committed
Feb 23, 2023
1 parent
8b4eed3
commit 40d497c
Showing
12 changed files
with
137 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters