Skip to content
Commit 98fc6a13 authored by arthurhung's avatar arthurhung
Browse files

Move drag event to InputDispatcher (4/n)

Currently, any window or windowless surface could receive drag event if
it is visible and touch-deliverable. But it's hard to tell if a surface
could receive this drag event in WM side because we didn't know the
final touch region of the surface that could be cropped by others.

- add isDragDrop to transferTouchFocus, true when called from drag/drop.
- ACTION_DRAG_EXITED/ACTION_DRAG_LOCATION will be sent from
  InputDispatcher to InputEventReceiver.

Bug: 158242495
Test: atest CrossAppDragAndDropTests DragDropTest
Test: atest WmTests:DragDropControllerTests

Change-Id: I111b6dbb6826fc77749fa2250ff4daced98979d2
parent cfde2362
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment