1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 include protocol PBrowser;
7 include protocol PContent;
9 using struct nsIntRect from "nsRect.h";
14 struct ScreenDetails {
17 nsIntRect rectDisplayPix;
19 nsIntRect availRectDisplayPix;
22 double contentsScaleFactor;
25 rpc protocol PScreenManager
31 returns (uint32_t numberOfScreens,
32 float systemDefaultScale,
35 rpc ScreenRefresh(uint32_t aId)
36 returns (ScreenDetails screen,
39 rpc GetPrimaryScreen()
40 returns (ScreenDetails screen,
43 rpc ScreenForRect(int32_t aLeft,
47 returns (ScreenDetails screen,
50 rpc ScreenForBrowser(PBrowser aBrowser)
51 returns (ScreenDetails screen,
59 } // namespace mozilla