WMHelperChromeOS::OnPerformDrop should return a single operation
When a drag-and-drop operations ends, a single operation is selected.
OnPerformDrop() should return that operation, instead of a bitmask of
multiple operations.
This is a precursor CL so that OnPerformDrop can change its return type
to ui::mojom::DragOperation which will enforce the allowed operation
values via type checking.
Test: WMHelperChromeOSTest.MultipleDragDropObservers
Bug: 1093536
Change-Id: Ia0a88f8509126c81b6429804c41c58b90404901c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2597546
Commit-Queue: Henrique Ferreiro <[email protected]>
Reviewed-by: Daniele Castagna <[email protected]>
Reviewed-by: Daichi Hirono <[email protected]>
Cr-Commit-Position: refs/heads/master@{#844480}
diff --git a/components/exo/BUILD.gn b/components/exo/BUILD.gn
index df442296..6c9c889 100644
--- a/components/exo/BUILD.gn
+++ b/components/exo/BUILD.gn
@@ -320,6 +320,7 @@
"//ui/base:test_support",
"//ui/base/cursor/mojom:cursor_type",
"//ui/base/dragdrop/mojom:mojom_shared",
+ "//ui/gfx/geometry",
]
}