2016-01-08 22:17:39 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set sw=4 ts=8 et 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_APZChild_h
|
|
|
|
#define mozilla_layers_APZChild_h
|
|
|
|
|
|
|
|
#include "mozilla/layers/PAPZChild.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
2016-08-25 00:15:35 +03:00
|
|
|
namespace layers {
|
2016-08-11 02:51:45 +03:00
|
|
|
|
2016-08-11 02:51:45 +03:00
|
|
|
class GeckoContentController;
|
|
|
|
|
2016-08-26 02:42:55 +03:00
|
|
|
/**
|
|
|
|
* APZChild implements PAPZChild and is used to remote a GeckoContentController
|
|
|
|
* that lives in a different process than where APZ lives.
|
|
|
|
*/
|
2016-01-08 22:17:39 +03:00
|
|
|
class APZChild final : public PAPZChild
|
|
|
|
{
|
|
|
|
public:
|
2016-08-11 02:51:45 +03:00
|
|
|
explicit APZChild(RefPtr<GeckoContentController> aController);
|
2016-01-08 22:17:39 +03:00
|
|
|
~APZChild();
|
|
|
|
|
2016-07-31 22:39:00 +03:00
|
|
|
bool RecvRequestContentRepaint(const FrameMetrics& frame) override;
|
2016-01-08 22:17:39 +03:00
|
|
|
|
2016-08-11 02:51:45 +03:00
|
|
|
bool RecvUpdateOverscrollVelocity(const float& aX, const float& aY, const bool& aIsRootContent) override;
|
|
|
|
|
|
|
|
bool RecvUpdateOverscrollOffset(const float& aX, const float& aY, const bool& aIsRootContent) override;
|
|
|
|
|
|
|
|
bool RecvSetScrollingRootContent(const bool& aIsRootContent) override;
|
|
|
|
|
|
|
|
bool RecvNotifyMozMouseScrollEvent(const ViewID& aScrollId,
|
2016-08-02 09:59:00 +03:00
|
|
|
const nsString& aEvent) override;
|
|
|
|
|
2016-08-11 02:51:45 +03:00
|
|
|
bool RecvNotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
|
2016-07-31 22:39:00 +03:00
|
|
|
const APZStateChange& aChange,
|
|
|
|
const int& aArg) override;
|
2016-01-08 22:17:39 +03:00
|
|
|
|
2016-07-31 22:39:00 +03:00
|
|
|
bool RecvNotifyFlushComplete() override;
|
2016-04-19 00:25:25 +03:00
|
|
|
|
2016-07-31 22:39:00 +03:00
|
|
|
bool RecvDestroy() override;
|
2016-01-08 22:17:39 +03:00
|
|
|
|
|
|
|
private:
|
2016-08-11 02:51:45 +03:00
|
|
|
RefPtr<GeckoContentController> mController;
|
2016-01-08 22:17:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_layers_APZChild_h
|