1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_layers_APZInputBridgeChild_h 8 #define mozilla_layers_APZInputBridgeChild_h 9 10 #include "mozilla/layers/APZInputBridge.h" 11 #include "mozilla/layers/PAPZInputBridgeChild.h" 12 13 namespace mozilla { 14 namespace layers { 15 16 class APZInputBridgeChild : public PAPZInputBridgeChild, public APZInputBridge { 17 NS_INLINE_DECL_REFCOUNTING(APZInputBridgeChild, final) 18 19 public: 20 APZInputBridgeChild(); 21 void Destroy(); 22 23 APZEventResult ReceiveInputEvent(InputData& aEvent) override; 24 25 protected: 26 void ProcessUnhandledEvent(LayoutDeviceIntPoint* aRefPoint, 27 ScrollableLayerGuid* aOutTargetGuid, 28 uint64_t* aOutFocusSequenceNumber, 29 LayersId* aOutLayersId) override; 30 31 void UpdateWheelTransaction(LayoutDeviceIntPoint aRefPoint, 32 EventMessage aEventMessage) override; 33 34 void ActorDestroy(ActorDestroyReason aWhy) override; 35 virtual ~APZInputBridgeChild(); 36 37 private: 38 bool mDestroyed; 39 }; 40 41 } // namespace layers 42 } // namespace mozilla 43 44 #endif // mozilla_layers_APZInputBridgeChild_h 45