2014-07-14 21:22:26 +04:00
|
|
|
/* -*- 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;
|
|
|
|
|
2015-01-29 22:31:40 +03:00
|
|
|
include "mozilla/GfxMessageUtils.h";
|
|
|
|
|
2015-04-21 18:04:57 +03:00
|
|
|
using nsIntRect from "nsRect.h";
|
2015-02-03 11:03:28 +03:00
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
2014-07-14 21:22:26 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
struct ScreenDetails {
|
|
|
|
uint32_t id;
|
|
|
|
nsIntRect rect;
|
2014-10-01 05:28:28 +04:00
|
|
|
nsIntRect rectDisplayPix;
|
2014-07-14 21:22:26 +04:00
|
|
|
nsIntRect availRect;
|
2014-10-01 05:28:28 +04:00
|
|
|
nsIntRect availRectDisplayPix;
|
2014-07-14 21:22:26 +04:00
|
|
|
int32_t pixelDepth;
|
|
|
|
int32_t colorDepth;
|
|
|
|
double contentsScaleFactor;
|
|
|
|
};
|
|
|
|
|
2016-10-15 02:50:30 +03:00
|
|
|
nested(upto inside_cpow) sync protocol PScreenManager
|
2014-07-14 21:22:26 +04:00
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
|
|
|
|
parent:
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_sync) sync Refresh()
|
2014-07-14 21:22:26 +04:00
|
|
|
returns (uint32_t numberOfScreens,
|
|
|
|
float systemDefaultScale,
|
|
|
|
bool success);
|
|
|
|
|
2016-10-28 06:05:52 +03:00
|
|
|
nested(inside_cpow) sync ScreenRefresh(uint32_t aId)
|
2014-07-14 21:22:26 +04:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_sync) sync GetPrimaryScreen()
|
2014-07-14 21:22:26 +04:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_sync) sync ScreenForRect(int32_t aLeft,
|
|
|
|
int32_t aTop,
|
|
|
|
int32_t aWidth,
|
|
|
|
int32_t aHeight)
|
2014-07-14 21:22:26 +04:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
2016-10-15 02:50:30 +03:00
|
|
|
nested(inside_cpow) sync ScreenForBrowser(TabId aTabId)
|
2014-07-14 21:22:26 +04:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
|
|
|
child:
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__();
|
2014-07-14 21:22:26 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|