mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
f83e394596
This commit hooks up the pieces of the PRemoteFrame protocol that will proxy initialization, sizing, and display messages. The messages chosen are just enough to start the frame and get an initial rendering. Differential Revision: https://phabricator.services.mozilla.com/D17445 --HG-- extra : source : b68b732411e2e1e6851799262246bff70e6649da extra : intermediate-source : c19bc81c4f43a5adba92184b2572c09c6c5a0680
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */
|
|
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
|
|
/* 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 PBrowser;
|
|
|
|
include DOMTypes;
|
|
|
|
using ScreenIntSize from "Units.h";
|
|
using nsSizeMode from "nsIWidgetListener.h";
|
|
using mozilla::layers::LayersObserverEpoch from "mozilla/layers/LayersTypes.h";
|
|
using mozilla::layers::LayersId from "mozilla/layers/LayersTypes.h";
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
/**
|
|
* PRemoteFrame corresponds to a remote iframe.
|
|
*/
|
|
async protocol PRemoteFrame {
|
|
manager PBrowser;
|
|
|
|
child:
|
|
async SetLayersId(LayersId layersId);
|
|
|
|
parent:
|
|
// Destroy the remote web browser due to the nsFrameLoader going away.
|
|
async __delete__();
|
|
|
|
// DocShell messaging.
|
|
async LoadURL(nsCString aSpec);
|
|
|
|
// Out of process rendering.
|
|
async Show(ScreenIntSize size, bool parentIsActive, nsSizeMode sizeMode);
|
|
async UpdateDimensions(DimensionInfo dimensions) compressall;
|
|
async RenderLayers(bool aEnabled, bool aForceRepaint, LayersObserverEpoch aEpoch);
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|