2016-07-01 11:15:16 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=99: */
|
|
|
|
/* 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 protocol PCompositorBridge;
|
|
|
|
|
|
|
|
using mozilla::gfx::IntSize from "mozilla/gfx/Point.h";
|
2020-11-23 19:03:47 +03:00
|
|
|
using mozilla::WindowsHandle from "mozilla/ipc/IPCTypes.h";
|
2018-04-06 06:24:28 +03:00
|
|
|
using nsTransparencyMode from "mozilla/widget/WidgetMessageUtils.h";
|
2016-07-01 11:15:16 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
|
2020-02-13 17:32:37 +03:00
|
|
|
struct RemoteBackbufferHandles {
|
|
|
|
WindowsHandle fileMapping;
|
|
|
|
WindowsHandle requestReadyEvent;
|
|
|
|
WindowsHandle responseReadyEvent;
|
|
|
|
};
|
|
|
|
|
2016-07-01 11:15:16 +03:00
|
|
|
sync protocol PCompositorWidget
|
|
|
|
{
|
|
|
|
manager PCompositorBridge;
|
|
|
|
|
|
|
|
parent:
|
2020-02-13 17:32:37 +03:00
|
|
|
sync Initialize(RemoteBackbufferHandles aRemoteHandles);
|
|
|
|
|
2016-07-01 11:15:16 +03:00
|
|
|
sync EnterPresentLock();
|
|
|
|
sync LeavePresentLock();
|
2018-04-06 06:24:28 +03:00
|
|
|
async UpdateTransparency(nsTransparencyMode aMode);
|
2016-07-01 11:15:16 +03:00
|
|
|
sync ClearTransparentWindow();
|
|
|
|
async __delete__();
|
2016-07-19 21:56:07 +03:00
|
|
|
|
|
|
|
child:
|
|
|
|
async ObserveVsync();
|
|
|
|
async UnobserveVsync();
|
2019-11-01 14:01:34 +03:00
|
|
|
async UpdateCompositorWnd(WindowsHandle aCompositorWnd, WindowsHandle aParentWnd)
|
|
|
|
returns (bool success);
|
2016-07-01 11:15:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace widget
|
|
|
|
} // namespace mozilla
|