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";
|
|
|
|
|
2016-08-02 09:59:00 +03:00
|
|
|
include protocol PCompositorBridge;
|
2016-01-08 22:17:39 +03:00
|
|
|
|
2016-07-29 21:44:29 +03:00
|
|
|
using mozilla::LayoutDevicePoint from "Units.h";
|
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";
|
2016-07-05 20:24:54 +03:00
|
|
|
using mozilla::layers::GeckoContentController::TapType from "mozilla/layers/GeckoContentController.h";
|
2016-01-08 22:17:39 +03:00
|
|
|
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 mozilla::Modifiers from "mozilla/EventForwards.h";
|
|
|
|
using class nsRegion from "nsRegion.h";
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If APZ is enabled then one PAPZ will be opened per PBrowser between the
|
|
|
|
* process where the PBrowser child actor lives and the main process (the
|
|
|
|
* PBrowser parent actor doesn't necessarily live in the main process, for
|
|
|
|
* example with nested browsers). This will typically be set up when the layers
|
|
|
|
* id is allocated for the PBrowser.
|
|
|
|
*
|
|
|
|
* Opened through PContent and runs on the main thread in both parent and child.
|
|
|
|
*/
|
|
|
|
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-07-31 22:39:00 +03:00
|
|
|
async UpdateHitRegion(nsRegion aRegion);
|
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-07-31 22:39:00 +03:00
|
|
|
async RequestContentRepaint(FrameMetrics frame);
|
2016-01-08 22:17:39 +03:00
|
|
|
|
2016-07-05 20:24:54 +03:00
|
|
|
// The aCallTakeFocusForClickFromTap argument is used for eSingleTap types,
|
|
|
|
// to request that the child take focus before dispatching the mouse events
|
|
|
|
// for the tap (otherwise the resulting focus behaviour is incorrect).
|
2016-07-29 21:44:29 +03:00
|
|
|
async HandleTap(TapType aType, LayoutDevicePoint point, Modifiers aModifiers,
|
2016-07-05 20:24:54 +03:00
|
|
|
ScrollableLayerGuid aGuid, uint64_t aInputBlockId,
|
|
|
|
bool aCallTakeFocusForClickFromTap);
|
2016-07-31 22:39:00 +03:00
|
|
|
|
2016-08-02 09:59:00 +03:00
|
|
|
async NotifyMozMouseScrollEvent(uint64_t aLayersId, ViewID aScrollId, nsString aEvent);
|
|
|
|
|
2016-08-25 00:15:35 +03:00
|
|
|
async NotifyAPZStateChange(ViewID aViewId, APZStateChange aChange, int aArg);
|
2016-07-31 22:39:00 +03:00
|
|
|
|
2016-01-08 22:17:39 +03:00
|
|
|
async NotifyFlushComplete();
|
|
|
|
|
2016-04-19 00:25:25 +03:00
|
|
|
async Destroy();
|
2016-01-08 22:17:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // layers
|
|
|
|
} // mozilla
|