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;
|
|
|
|
|
2021-11-25 14:33:46 +03:00
|
|
|
include "mozilla/dom/TabMessageUtils.h";
|
2020-11-23 19:04:01 +03:00
|
|
|
include "mozilla/widget/WidgetMessageUtils.h";
|
|
|
|
|
2016-07-01 11:15:16 +03:00
|
|
|
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";
|
2023-02-04 13:44:24 +03:00
|
|
|
using mozilla::widget::TransparencyMode from "nsIWidget.h";
|
2021-11-25 14:33:46 +03:00
|
|
|
using nsSizeMode from "nsIWidget.h";
|
2016-07-01 11:15:16 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
|
2020-02-13 17:32:37 +03:00
|
|
|
struct RemoteBackbufferHandles {
|
2021-11-09 17:17:34 +03:00
|
|
|
FileDescriptor fileMapping;
|
|
|
|
FileDescriptor requestReadyEvent;
|
|
|
|
FileDescriptor responseReadyEvent;
|
2020-02-13 17:32:37 +03:00
|
|
|
};
|
|
|
|
|
2022-02-09 20:29:47 +03:00
|
|
|
[ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
|
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();
|
2023-01-24 02:58:41 +03:00
|
|
|
async UpdateTransparency(TransparencyMode aMode);
|
2021-11-25 14:33:46 +03:00
|
|
|
async NotifyVisibilityUpdated(nsSizeMode aSizeMode, bool aIsFullyOccluded);
|
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
|