Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PAPZCTreeManagerChild_h
#define PAPZCTreeManagerChild_h
#include "mozilla/layers/PAPZCTreeManager.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
// Headers for things that cannot be forward declared
#include "InputData.h"
#include "Units.h"
#include "mozilla/EventForwards.h"
#include "mozilla/layers/APZInputBridge.h"
#include "mozilla/layers/AsyncDragMetrics.h"
#include "mozilla/layers/DoubleTapToZoom.h"
#include "mozilla/layers/GeckoContentControllerTypes.h"
#include "mozilla/layers/LayersTypes.h"
#include "mozilla/layers/ScrollableLayerGuid.h"
#include "mozilla/layers/ZoomConstraints.h"
#include "mozilla/webrender/WebRenderTypes.h"
namespace mozilla {
namespace layers {
class PCompositorBridgeChild;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCompositorBridgeParent;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCompositorBridgeChild;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class KeyboardMap;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PAPZCTreeManagerChild :
public mozilla::ipc::IProtocol
{
private:
friend class ::mozilla::layers::PCompositorBridgeChild;
protected:
typedef ::mozilla::layers::APZHandledResult APZHandledResult;
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::layers::AsyncDragMetrics AsyncDragMetrics;
typedef ::mozilla::layers::BrowserGestureResponse BrowserGestureResponse;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::CSSRect CSSRect;
typedef ::mozilla::layers::DoubleTapToZoomMetrics DoubleTapToZoomMetrics;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::layers::GeckoContentController_TapType GeckoContentController_TapType;
typedef ::mozilla::layers::KeyboardMap KeyboardMap;
typedef ::mozilla::LayoutDeviceCoord LayoutDeviceCoord;
typedef ::mozilla::LayoutDevicePoint LayoutDevicePoint;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::Modifiers Modifiers;
typedef ::mozilla::layers::PCompositorBridgeChild PCompositorBridgeChild;
typedef ::mozilla::layers::PCompositorBridgeParent PCompositorBridgeParent;
typedef ::mozilla::PinchGestureInput::PinchGestureType PinchGestureType;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::wr::RenderRoot RenderRoot;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::ScreenPoint ScreenPoint;
typedef ::mozilla::layers::ScrollableLayerGuid ScrollableLayerGuid;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::layers::TouchBehaviorFlags TouchBehaviorFlags;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::layers::ScrollableLayerGuid::ViewID ViewID;
typedef ::mozilla::layers::ZoomConstraints ZoomConstraints;
typedef ::mozilla::layers::ZoomTarget ZoomTarget;
typedef ::int16_t int16_t;
typedef ::int32_t int32_t;
typedef ::int64_t int64_t;
typedef ::int8_t int8_t;
typedef ::intptr_t intptr_t;
typedef ::nsCString nsCString;
typedef ::nsString nsString;
typedef ::nsresult nsresult;
typedef ::uint16_t uint16_t;
typedef ::uint32_t uint32_t;
typedef ::uint64_t uint64_t;
typedef ::uint8_t uint8_t;
typedef ::uintptr_t uintptr_t;
protected:
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PAPZCTreeManagerChild();
virtual ~PAPZCTreeManagerChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
PCompositorBridgeChild*
Manager() const;
uint32_t
AllManagedActorsCount() const override;
bool
SendZoomToRect(
const ScrollableLayerGuid& aGuid,
const ZoomTarget& aZoomTarget,
const uint32_t& Flags);
bool
SendContentReceivedInputBlock(
const uint64_t& aInputBlockId,
const bool& PreventDefault);
bool
SendSetTargetAPZC(
const uint64_t& aInputBlockId,
mozilla::Span<ScrollableLayerGuid const> Targets);
bool
SendUpdateZoomConstraints(
const ScrollableLayerGuid& aGuid,
const mozilla::Maybe<ZoomConstraints>& aConstraints);
bool
SendSetKeyboardMap(const KeyboardMap& aKeyboardMap);
bool
SendSetDPI(const float& aDpiValue);
bool
SendSetAllowedTouchBehavior(
const uint64_t& aInputBlockId,
mozilla::Span<TouchBehaviorFlags const> aValues);
bool
SendStartScrollbarDrag(
const ScrollableLayerGuid& aGuid,
const AsyncDragMetrics& aDragMetrics);
bool
SendStartAutoscroll(
const ScrollableLayerGuid& aGuid,
const ScreenPoint& aAnchorLocation);
bool
SendStopAutoscroll(const ScrollableLayerGuid& aGuid);
bool
SendSetLongTapEnabled(const bool& aTapGestureEnabled);
bool
SendSetBrowserGestureResponse(
const uint64_t& aInputBlockId,
const BrowserGestureResponse& aResponse);
static bool
Send__delete__(PAPZCTreeManagerChild* actor);
void
RemoveManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
void
DoomSubtree() override;
IProtocol*
PeekManagedActor() override;
private:
bool mAwaitingManagedEndpointBind = false;
};
} // namespace layers
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::layers::PAPZCTreeManagerChild*>
{
typedef ::mozilla::layers::PAPZCTreeManagerChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PAPZCTreeManagerChild_h