Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 display.mojom; | |
| 6 | |
| 7 // Corresponds to display::DisplayPlacement::Position. | |
| 8 enum Position { | |
| 9 TOP, | |
| 10 RIGHT, | |
| 11 BOTTOM, | |
| 12 LEFT | |
|
Daniel Erat
2017/02/01 23:06:37
nit: mojo permits a trailing comma here and in Off
kylechar
2017/02/02 14:40:48
Done.
| |
| 13 }; | |
| 14 | |
| 15 // Corresponds to display::DisplayPlacement::OffsetReference. | |
| 16 enum OffsetReference { | |
| 17 TOP_LEFT, | |
| 18 BOTTOM_RIGHT | |
| 19 }; | |
| 20 | |
| 21 // Corresponds to display::DisplayPlacement. | |
| 22 struct DisplayPlacement { | |
| 23 int64 display_id; | |
| 24 int64 parent_display_id; | |
| 25 Position position; | |
| 26 int32 offset; | |
| 27 OffsetReference offset_reference; | |
| 28 }; | |
| 29 | |
| 30 // Corresponds to display::DisplayLayout. | |
| 31 struct DisplayLayout { | |
| 32 bool mirrored; | |
| 33 bool default_unified; | |
| 34 int64 primary_display_id; | |
| 35 array<DisplayPlacement> placement_list; | |
| 36 }; | |
| OLD | NEW |