summaryrefslogtreecommitdiffstats
path: root/dom/ipc/PBrowser.ipdl
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-14 12:38:55 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-03-14 12:38:55 +0100
commit302f17e514772770f5555ce939b21b194514ebc3 (patch)
treeaca62ce6a23c2a9b08cfa27987586463aafef760 /dom/ipc/PBrowser.ipdl
parent959f6d2881edaf7389b439ca69bcf881622d06a2 (diff)
downloadUXP-302f17e514772770f5555ce939b21b194514ebc3.tar
UXP-302f17e514772770f5555ce939b21b194514ebc3.tar.gz
UXP-302f17e514772770f5555ce939b21b194514ebc3.tar.lz
UXP-302f17e514772770f5555ce939b21b194514ebc3.tar.xz
UXP-302f17e514772770f5555ce939b21b194514ebc3.zip
Revert "Bug 1438425 - Delete DocumentRenderer. r=jesup, a=RyanVM"
This reverts commit 5b69e05939c7fd3f917e2dd0f399774b3b15c886.
Diffstat (limited to 'dom/ipc/PBrowser.ipdl')
-rw-r--r--dom/ipc/PBrowser.ipdl20
1 files changed, 20 insertions, 0 deletions
diff --git a/dom/ipc/PBrowser.ipdl b/dom/ipc/PBrowser.ipdl
index 9dfccbc5c..249657c26 100644
--- a/dom/ipc/PBrowser.ipdl
+++ b/dom/ipc/PBrowser.ipdl
@@ -11,6 +11,7 @@ include protocol PContent;
include protocol PContentBridge;
include protocol PDatePicker;
include protocol PDocAccessible;
+include protocol PDocumentRenderer;
include protocol PFilePicker;
include protocol PIndexedDBPermissionRequest;
include protocol PRenderFrame;
@@ -118,6 +119,7 @@ nested(upto inside_cpow) sync protocol PBrowser
manages PColorPicker;
manages PDatePicker;
manages PDocAccessible;
+ manages PDocumentRenderer;
manages PFilePicker;
manages PIndexedDBPermissionRequest;
manages PRenderFrame;
@@ -737,6 +739,24 @@ child:
async LoadRemoteScript(nsString aURL, bool aRunInGlobalScope);
/**
+ * Create a asynchronous request to render whatever document is
+ * loaded in the child when this message arrives. When the
+ * request finishes, PDocumentRenderer:__delete__ is sent back to
+ * this side to notify completion.
+ *
+ * |documentRect| is the area of the remote document to draw,
+ * transformed by |transform|. The rendered area will have the
+ * default background color |bgcolor|. |renderFlags| are the
+ * nsIPresShell::RenderDocument() flags to use on the remote side,
+ * and if true, |flushLayout| will do just that before rendering
+ * the document. The rendered image will be of size |renderSize|.
+ */
+ async PDocumentRenderer(nsRect documentRect, Matrix transform,
+ nsString bgcolor,
+ uint32_t renderFlags, bool flushLayout,
+ IntSize renderSize);
+
+ /**
* Sent by the chrome process when it no longer wants this remote
* <browser>. The child side cleans up in response, then
* finalizing its death by sending back __delete__() to the