OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module mojo; | 5 module mojo; |
6 | 6 |
7 import "geometry/interfaces/geometry.mojom"; | 7 import "geometry/interfaces/geometry.mojom"; |
8 | 8 |
9 enum DisplayType { | 9 enum DisplayType { |
10 NONE = 0, | 10 NONE = 0, |
11 UNKNOWN = 1, | 11 UNKNOWN = 1, |
12 INTERNAL = 2, | 12 INTERNAL = 2, |
13 VGA = 4, | 13 VGA = 4, |
14 HDMI = 8, | 14 HDMI = 8, |
15 DVI = 16, | 15 DVI = 16, |
16 DISPLAYPORT = 32, | 16 DISPLAYPORT = 32, |
17 NETWORK = 64, | 17 NETWORK = 64, |
18 LAST = NETWORK | 18 LAST = NETWORK, |
19 }; | 19 }; |
20 | 20 |
21 struct DisplayMode { | 21 struct DisplayMode { |
22 Size size; | 22 Size size; |
23 bool is_interlaced; | 23 bool is_interlaced; |
24 float refresh_rate; | 24 float refresh_rate; |
25 }; | 25 }; |
26 | 26 |
27 struct DisplaySnapshot { | 27 struct DisplaySnapshot { |
28 // The internal display identifier. | 28 // The internal display identifier. |
(...skipping 17 matching lines...) Expand all Loading... |
46 | 46 |
47 [ServiceName="mojo::OzoneDrmGpu"] | 47 [ServiceName="mojo::OzoneDrmGpu"] |
48 interface OzoneDrmGpu { | 48 interface OzoneDrmGpu { |
49 AddGraphicsDevice(string file_path, int32 file_descriptor); | 49 AddGraphicsDevice(string file_path, int32 file_descriptor); |
50 CreateWindow(int64 widget); | 50 CreateWindow(int64 widget); |
51 WindowBoundsChanged(int64 widget, Rect bounds); | 51 WindowBoundsChanged(int64 widget, Rect bounds); |
52 | 52 |
53 RefreshNativeDisplays(); | 53 RefreshNativeDisplays(); |
54 ConfigureNativeDisplay(int64 id, DisplayMode mode, Point originhost); | 54 ConfigureNativeDisplay(int64 id, DisplayMode mode, Point originhost); |
55 }; | 55 }; |
OLD | NEW |