diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /gfx/layers/ipc/APZInputBridgeChild.h | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/ipc/APZInputBridgeChild.h')
-rw-r--r-- | gfx/layers/ipc/APZInputBridgeChild.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gfx/layers/ipc/APZInputBridgeChild.h b/gfx/layers/ipc/APZInputBridgeChild.h index dd77d95f36..4b14e3aa0d 100644 --- a/gfx/layers/ipc/APZInputBridgeChild.h +++ b/gfx/layers/ipc/APZInputBridgeChild.h @@ -10,11 +10,16 @@ #include "mozilla/layers/APZInputBridge.h" #include "mozilla/layers/PAPZInputBridgeChild.h" +#include "mozilla/layers/GeckoContentControllerTypes.h" + namespace mozilla { namespace layers { +class RemoteCompositorSession; + class APZInputBridgeChild : public PAPZInputBridgeChild, public APZInputBridge { NS_INLINE_DECL_THREADSAFE_REFCOUNTING(APZInputBridgeChild, final) + using TapType = GeckoContentController_TapType; public: static RefPtr<APZInputBridgeChild> Create( @@ -23,10 +28,19 @@ class APZInputBridgeChild : public PAPZInputBridgeChild, public APZInputBridge { void Destroy(); + void SetCompositorSession(RemoteCompositorSession* aSession); + APZEventResult ReceiveInputEvent( InputData& aEvent, InputBlockCallback&& aCallback = InputBlockCallback()) override; + MOZ_CAN_RUN_SCRIPT_BOUNDARY + mozilla::ipc::IPCResult RecvHandleTap( + const TapType& aType, const LayoutDevicePoint& aPoint, + const Modifiers& aModifiers, const ScrollableLayerGuid& aGuid, + const uint64_t& aInputBlockId, + const Maybe<DoubleTapToZoomMetrics>& aDoubleTapToZoomMetrics); + mozilla::ipc::IPCResult RecvCallInputBlockCallback( uint64_t aInputBlockId, const APZHandledResult& handledResult); @@ -48,8 +62,16 @@ class APZInputBridgeChild : public PAPZInputBridgeChild, public APZInputBridge { private: void Open(Endpoint<PAPZInputBridgeChild>&& aEndpoint); + MOZ_CAN_RUN_SCRIPT_BOUNDARY + void HandleTapOnMainThread( + const TapType& aType, const LayoutDevicePoint& aPoint, + const Modifiers& aModifiers, const ScrollableLayerGuid& aGuid, + const uint64_t& aInputBlockId, + const Maybe<DoubleTapToZoomMetrics>& aDoubleTapToZoomMetrics); + bool mIsOpen; uint64_t mProcessToken; + MOZ_NON_OWNING_REF RemoteCompositorSession* mCompositorSession = nullptr; using InputBlockCallbackMap = std::unordered_map<uint64_t, InputBlockCallback>; |