2014-07-14 17:22:26 +00: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;
|
|
|
|
|
|
|
|
using struct nsIntRect from "nsRect.h";
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
struct ScreenDetails {
|
|
|
|
uint32_t id;
|
|
|
|
nsIntRect rect;
|
|
|
|
nsIntRect availRect;
|
|
|
|
int32_t pixelDepth;
|
|
|
|
int32_t colorDepth;
|
|
|
|
double contentsScaleFactor;
|
|
|
|
};
|
|
|
|
|
2014-08-06 04:45:41 +00:00
|
|
|
rpc protocol PScreenManager
|
2014-07-14 17:22:26 +00:00
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
|
|
|
|
parent:
|
2014-08-06 04:45:41 +00:00
|
|
|
rpc Refresh()
|
2014-07-14 17:22:26 +00:00
|
|
|
returns (uint32_t numberOfScreens,
|
|
|
|
float systemDefaultScale,
|
|
|
|
bool success);
|
|
|
|
|
2014-08-06 04:45:41 +00:00
|
|
|
rpc ScreenRefresh(uint32_t aId)
|
2014-07-14 17:22:26 +00:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
2014-08-06 04:45:41 +00:00
|
|
|
rpc GetPrimaryScreen()
|
2014-07-14 17:22:26 +00:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
2014-08-06 04:45:41 +00:00
|
|
|
rpc ScreenForRect(int32_t aLeft,
|
2014-07-14 17:22:26 +00:00
|
|
|
int32_t aTop,
|
|
|
|
int32_t aWidth,
|
|
|
|
int32_t aHeight)
|
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
2014-08-06 04:45:41 +00:00
|
|
|
rpc ScreenForBrowser(PBrowser aBrowser)
|
2014-07-14 17:22:26 +00:00
|
|
|
returns (ScreenDetails screen,
|
|
|
|
bool success);
|
|
|
|
|
|
|
|
child:
|
|
|
|
__delete__();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|