summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2024-05-24 15:06:58 +0000
committer Johannes Gallmann <gallmann@google.com> 2024-05-30 16:13:44 +0000
commitf3d4acf240dc2679f585618516eaee33778e4d11 (patch)
tree3fb958ea67c2b1e2f94fdd7e054a144da8acace6 /libs/input/PointerController.cpp
parent9a372e7c6e5a4a099a4b66f1a2b96d4b766f4a2b (diff)
Refactor IME callback registration
This refactoring aims to slightly simplify the IME back callback registration. The alternate constructor for OnBackInvokedCallbackWrapper is removed and with it a number of back and forth communication between ImeOnBackInvokedDispatcher and WindowOnBackInvokedDispatcher. ImeOnBackInvokedDispatcher also no longer needs to hold its own touch tracker, handler and BackProgressAnimator. It comes at the cost of one more layer of callback wrapping. This means that the OnBackInvokedCallback coming from the IME is wrapped once before sending it from the IME process to the app process. It is wrapped a second time when it is sent from the app process to WM (if it is the top callback). Bug: 341013064 Test: atest FrameworksCoreTests:WindowOnBackInvokedDispatcherTest Test: Manual, i.e. testing that registered ImeOnBackInvokedCallbacks work correctly. Change-Id: I45744fb5c62786a437880c013427083f42562e55
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions