OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module mojo; | |
6 | |
7 import "geometry/public/interfaces/geometry.mojom"; | |
8 | |
9 enum DisplayType { | |
10 NONE = 0, | |
11 UNKNOWN = 1, | |
12 INTERNAL = 2, | |
13 VGA = 4, | |
14 HDMI = 8, | |
15 DVI = 16, | |
16 DISPLAYPORT = 32, | |
17 NETWORK = 64, | |
18 LAST = NETWORK | |
19 }; | |
20 | |
21 struct DisplayMode { | |
22 Size size; | |
23 bool is_interlaced; | |
24 float refresh_rate; | |
25 }; | |
26 | |
27 struct DisplaySnapshot { | |
28 // The internal display identifier. | |
29 int64 display_id; | |
30 Point origin; | |
31 Size physical_size; | |
32 DisplayType type; | |
33 bool has_current_mode; | |
34 bool has_native_mode; | |
35 array<DisplayMode> modes; | |
36 // The mode currently active on this display. | |
37 // TODO: can this be just an index into the modes array? | |
jamesr
2015/08/28 20:49:44
you should stick your name in the TODO thusly: "TO
cdotstout
2015/08/28 20:59:14
Done.
| |
38 DisplayMode current_mode; | |
39 // The display's native mode. | |
40 // TODO: can this be just an index into the modes array? | |
41 DisplayMode native_mode; | |
42 // The identifier for the model of the display. | |
43 int64 product_id; | |
44 string string_representation; | |
45 }; | |
46 | |
47 interface OzoneDrmGpu { | |
48 AddGraphicsDevice(string file_path, int32 file_descriptor); | |
49 CreateWindow(int64 widget); | |
50 WindowBoundsChanged(int64 widget, Rect bounds); | |
51 | |
52 RefreshNativeDisplays(); | |
53 ConfigureNativeDisplay(int64 id, DisplayMode mode, Point originhost); | |
54 }; | |
OLD | NEW |