Skip to content
Commit df5cf625 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Move drag and drop related lines to DragDropController

The CL creates new DragDropController class where we can get together
everything related with drag and drop, and moves the following methods
to DragDropController.

  * WindowManagerService#preapreDragSurface
  * WindowManagerService.H#handleMessage for DRAG_START_TIMEOUT,
    DRAG_END_TIMEOUT, and TEAR_DOWN_DRAG_AND_DROP_INPUT
  * Session#preapreDrag
  * Session#performDrag
  * Session#reportDropResult
  * Session#cancelDragAndDrop
  * Session#dragRecipientEntered
  * Session#dragRecipientExited

Note that the CL does not remove the binder interface methods in
Session e.g. Session#prepareDrag. These methods start delegating drag
and drop work to DragDropController.

Bug: 65564090
Test: Manually drag and drop files between apps, CTS CrossAppDragAndDropTests
Change-Id: I50f6f022f2ecd0ab160b5187ae39f0f533f05969
parent c3787a8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment