summaryrefslogtreecommitdiffstats
path: root/dom/ipc/PScreenManager.ipdl
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/ipc/PScreenManager.ipdl
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/ipc/PScreenManager.ipdl')
-rw-r--r--dom/ipc/PScreenManager.ipdl62
1 files changed, 62 insertions, 0 deletions
diff --git a/dom/ipc/PScreenManager.ipdl b/dom/ipc/PScreenManager.ipdl
new file mode 100644
index 000000000..a6ad26cfc
--- /dev/null
+++ b/dom/ipc/PScreenManager.ipdl
@@ -0,0 +1,62 @@
+/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
+/* 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 protocol PContent;
+
+include "mozilla/GfxMessageUtils.h";
+
+using nsIntRect from "nsRect.h";
+using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
+
+namespace mozilla {
+namespace dom {
+
+struct ScreenDetails {
+ uint32_t id;
+ nsIntRect rect;
+ nsIntRect rectDisplayPix;
+ nsIntRect availRect;
+ nsIntRect availRectDisplayPix;
+ int32_t pixelDepth;
+ int32_t colorDepth;
+ double contentsScaleFactor;
+};
+
+nested(upto inside_cpow) sync protocol PScreenManager
+{
+ manager PContent;
+
+parent:
+ nested(inside_sync) sync Refresh()
+ returns (uint32_t numberOfScreens,
+ float systemDefaultScale,
+ bool success);
+
+ nested(inside_cpow) sync ScreenRefresh(uint32_t aId)
+ returns (ScreenDetails screen,
+ bool success);
+
+ nested(inside_sync) sync GetPrimaryScreen()
+ returns (ScreenDetails screen,
+ bool success);
+
+ nested(inside_sync) sync ScreenForRect(int32_t aLeft,
+ int32_t aTop,
+ int32_t aWidth,
+ int32_t aHeight)
+ returns (ScreenDetails screen,
+ bool success);
+
+ nested(inside_cpow) sync ScreenForBrowser(TabId aTabId)
+ returns (ScreenDetails screen,
+ bool success);
+
+child:
+ async __delete__();
+};
+
+} // namespace dom
+} // namespace mozilla