commit | f452d0b9bbfa019422801b7ae132bb31fccd181e | [log] [tgz] |
---|---|---|
author | arthurhung <arthurhung@google.com> | Wed Jan 06 00:19:52 2021 +0800 |
committer | arthurhung <arthurhung@google.com> | Tue Mar 16 18:00:26 2021 +0800 |
tree | dc7605795559f7f9de59180cc78d7a930406670b | |
parent | ead2fee4d9f20d9175c57170181bbd0b9571f60e [diff] [blame] |
Move drag event to InputDispatcher (5/n) This CL add 'notifyDropWindow' to tell the policy about the dropping window has been detected. That could help the drag controller to handle the drop event and dispatch the clip data to the corresponding client. Bug: 158242495 Test: atest inputflinger_tests Change-Id: If7bce072dff5bdacb7eb765f94eb73ed63a58170
diff --git a/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp b/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp index b2ddb42..7bd0c6b 100644 --- a/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp +++ b/services/inputflinger/benchmarks/InputDispatcher_benchmarks.cpp
@@ -113,6 +113,8 @@ void setPointerCapture(bool enabled) override {} + void notifyDropWindow(const sp<IBinder>&, float x, float y) override {} + InputDispatcherConfiguration mConfig; };