2018-03-16 23:28:19 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_layers_APZInputBridgeChild_h
|
|
|
|
#define mozilla_layers_APZInputBridgeChild_h
|
|
|
|
|
2018-03-16 23:28:19 +03:00
|
|
|
#include "mozilla/layers/APZInputBridge.h"
|
2018-03-16 23:28:19 +03:00
|
|
|
#include "mozilla/layers/PAPZInputBridgeChild.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
class APZInputBridgeChild : public PAPZInputBridgeChild, public APZInputBridge {
|
2019-08-08 19:46:22 +03:00
|
|
|
NS_INLINE_DECL_REFCOUNTING(APZInputBridgeChild, final)
|
2018-03-16 23:28:19 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
APZInputBridgeChild();
|
|
|
|
void Destroy();
|
|
|
|
|
2019-09-19 05:45:21 +03:00
|
|
|
APZEventResult ReceiveInputEvent(InputData& aEvent) override;
|
2018-03-16 23:28:19 +03:00
|
|
|
|
2018-03-16 23:28:19 +03:00
|
|
|
protected:
|
2018-03-16 23:28:19 +03:00
|
|
|
void ProcessUnhandledEvent(LayoutDeviceIntPoint* aRefPoint,
|
|
|
|
ScrollableLayerGuid* aOutTargetGuid,
|
2019-02-27 19:15:07 +03:00
|
|
|
uint64_t* aOutFocusSequenceNumber,
|
|
|
|
LayersId* aOutLayersId) override;
|
2018-03-16 23:28:19 +03:00
|
|
|
|
|
|
|
void UpdateWheelTransaction(LayoutDeviceIntPoint aRefPoint,
|
|
|
|
EventMessage aEventMessage) override;
|
|
|
|
|
2018-03-16 23:28:19 +03:00
|
|
|
void ActorDestroy(ActorDestroyReason aWhy) override;
|
|
|
|
virtual ~APZInputBridgeChild();
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool mDestroyed;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_layers_APZInputBridgeChild_h
|