summaryrefslogtreecommitdiff
path: root/include/input/Input.h
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2021-09-24 01:06:18 +0000
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2021-09-24 01:06:18 +0000
commit68acddb4dd184ff3136fce943b44b76ae035c242 (patch)
treed38342e9f6e515cdfab6900338e819417ab1cb76 /include/input/Input.h
parent950b7df53c47944ea656cab5baf357ee421f8dcc (diff)
parentf192a1085a4ea16458a8cc569e945bf090375733 (diff)
Snap for 7761456 from f192a1085a4ea16458a8cc569e945bf090375733 to sc-qpr1-release
Change-Id: I0959ad258365958fbda2e9ec409d434598033a72
Diffstat (limited to 'include/input/Input.h')
-rw-r--r--include/input/Input.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index 2e326cb102..dce6ccb3d5 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -1015,6 +1015,25 @@ private:
std::queue<std::unique_ptr<DragEvent>> mDragEventPool;
};
+/*
+ * Describes a unique request to enable or disable Pointer Capture.
+ */
+struct PointerCaptureRequest {
+public:
+ inline PointerCaptureRequest() : enable(false), seq(0) {}
+ inline PointerCaptureRequest(bool enable, uint32_t seq) : enable(enable), seq(seq) {}
+ inline bool operator==(const PointerCaptureRequest& other) const {
+ return enable == other.enable && seq == other.seq;
+ }
+ explicit inline operator bool() const { return enable; }
+
+ // True iff this is a request to enable Pointer Capture.
+ bool enable;
+
+ // The sequence number for the request.
+ uint32_t seq;
+};
+
} // namespace android
#endif // _LIBINPUT_INPUT_H