diff options
| author | Prabir Pradhan <prabirmsp@google.com> | 2020-11-10 17:26:05 -0800 |
|---|---|---|
| committer | Prabir Pradhan <prabirmsp@google.com> | 2020-11-17 14:58:46 -0800 |
| commit | 7c48ce83bc63c3283c07b62a5edc6ea9ffd3b49a (patch) | |
| tree | 6afcf42018b48ef6a7baefd5353bbdcacaa3f594 /core/java/android/view/InputEventReceiver.java | |
| parent | f7e5db73c9d884aad142e6822e736f21a005e8ae (diff) | |
SyncPointerCapture (4/n): Receive capture events in InputEventReceiver
Since a capture event was added to the InputChannel, this CL lets
InputEventReceiver receive the capture events sent by the publisher.
Bug: 141749603
Test: build, crosshatch boots
Change-Id: I608f3cf86d96e4d2b00b28f88fa2b7aa6e83b6dc
Diffstat (limited to 'core/java/android/view/InputEventReceiver.java')
| -rw-r--r-- | core/java/android/view/InputEventReceiver.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/view/InputEventReceiver.java b/core/java/android/view/InputEventReceiver.java index 038dff654ba6..7d1adc36964b 100644 --- a/core/java/android/view/InputEventReceiver.java +++ b/core/java/android/view/InputEventReceiver.java @@ -144,6 +144,20 @@ public abstract class InputEventReceiver { } /** + * Called when a Pointer Capture event is received. + * + * @param pointerCaptureEnabled if true, the window associated with this input channel has just + * received Pointer Capture + * if false, the window associated with this input channel has just + * lost Pointer Capture + * @see View#requestPointerCapture() + * @see View#releasePointerCapture() + */ + // Called from native code. + public void onPointerCaptureEvent(boolean pointerCaptureEnabled) { + } + + /** * Called when a batched input event is pending. * * The batched input event will continue to accumulate additional movement |
