2016-01-08 22:17:39 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
include "mozilla/GfxMessageUtils.h";
|
2017-06-09 07:32:13 +03:00
|
|
|
include "mozilla/layers/LayersMessageUtils.h";
|
2016-01-08 22:17:39 +03:00
|
|
|
|
2016-08-02 09:59:00 +03:00
|
|
|
include protocol PCompositorBridge;
|
2016-01-08 22:17:39 +03:00
|
|
|
|
|
|
|
using CSSRect from "Units.h";
|
|
|
|
using struct mozilla::layers::FrameMetrics from "FrameMetrics.h";
|
|
|
|
using struct mozilla::layers::ScrollableLayerGuid from "FrameMetrics.h";
|
|
|
|
using mozilla::layers::FrameMetrics::ViewID from "FrameMetrics.h";
|
|
|
|
using mozilla::layers::MaybeZoomConstraints from "FrameMetrics.h";
|
|
|
|
using mozilla::layers::TouchBehaviorFlags from "mozilla/layers/APZUtils.h";
|
|
|
|
using mozilla::layers::GeckoContentController::APZStateChange from "mozilla/layers/GeckoContentController.h";
|
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
|
|
|
using mozilla::dom::ContentParentId from "mozilla/dom/ipc/IdType.h";
|
|
|
|
using mozilla::layers::AsyncDragMetrics from "mozilla/layers/AsyncDragMetrics.h";
|
|
|
|
using class nsRegion from "nsRegion.h";
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2016-08-26 02:42:55 +03:00
|
|
|
* PAPZ is a protocol for remoting a GeckoContentController. PAPZ lives on the
|
|
|
|
* PCompositorBridge protocol which either connects to the compositor thread
|
|
|
|
* in the main process, or to the compositor thread in the gpu processs.
|
2016-01-08 22:17:39 +03:00
|
|
|
*
|
2016-08-26 02:42:55 +03:00
|
|
|
* PAPZParent lives in the compositor thread, while PAPZChild lives wherever the remoted
|
|
|
|
* GeckoContentController lives (generally the main thread of the main or content process).
|
|
|
|
* RemoteContentController implements PAPZParent, while APZChild implements PAPZChild.
|
|
|
|
*
|
|
|
|
* PAPZ is always used for ContentProcessController and only used for ChromeProcessController
|
|
|
|
* when there is a gpu process, otherwhise ChromeProcessController is used directly on the
|
|
|
|
* compositor thread. Only the methods that are used by the [Chrome,Content]ProcessController
|
|
|
|
* are implemented. If a new method is needed then PAPZ, APZChild, and RemoteContentController
|
|
|
|
* must be updated to handle it.
|
2016-01-08 22:17:39 +03:00
|
|
|
*/
|
|
|
|
sync protocol PAPZ
|
|
|
|
{
|
2016-08-02 09:59:00 +03:00
|
|
|
manager PCompositorBridge;
|
2016-01-08 22:17:39 +03:00
|
|
|
|
|
|
|
parent:
|
2016-08-25 00:15:49 +03:00
|
|
|
|
2016-04-19 00:25:25 +03:00
|
|
|
async __delete__();
|
|
|
|
|
2016-01-08 22:17:39 +03:00
|
|
|
child:
|
2016-08-26 02:42:55 +03:00
|
|
|
|
2016-07-31 22:39:00 +03:00
|
|
|
async RequestContentRepaint(FrameMetrics frame);
|
2016-01-08 22:17:39 +03:00
|
|
|
|
2016-08-11 02:51:45 +03:00
|
|
|
async UpdateOverscrollVelocity(float aX, float aY, bool aIsRootContent);
|
2016-08-02 09:59:00 +03:00
|
|
|
|
2016-08-11 02:51:45 +03:00
|
|
|
async UpdateOverscrollOffset(float aX, float aY, bool aIsRootContent);
|
|
|
|
|
|
|
|
async NotifyMozMouseScrollEvent(ViewID aScrollId, nsString aEvent);
|
|
|
|
|
|
|
|
async NotifyAPZStateChange(ScrollableLayerGuid aGuid, APZStateChange aChange, int aArg);
|
2016-07-31 22:39:00 +03:00
|
|
|
|
2016-01-08 22:17:39 +03:00
|
|
|
async NotifyFlushComplete();
|
|
|
|
|
2017-01-28 02:02:22 +03:00
|
|
|
async NotifyAsyncScrollbarDragRejected(ViewID aScrollId);
|
|
|
|
|
2017-10-19 01:18:13 +03:00
|
|
|
async NotifyAsyncAutoscrollRejected(ViewID aScrollId);
|
2017-07-27 02:32:57 +03:00
|
|
|
|
2016-04-19 00:25:25 +03:00
|
|
|
async Destroy();
|
2016-01-08 22:17:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // layers
|
|
|
|
} // mozilla
|