summaryrefslogtreecommitdiff
path: root/chromium/ui/display/mojo/display_layout.mojom
blob: 77d3c50b26f8d1ca151ecc84017e27ed4b5b2b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module display.mojom;

// Corresponds to display::DisplayPlacement::Position.
enum Position {
  TOP,
  RIGHT,
  BOTTOM,
  LEFT,
};

// Corresponds to display::DisplayPlacement::OffsetReference.
enum OffsetReference {
  TOP_LEFT,
  BOTTOM_RIGHT,
};

// Corresponds to display::DisplayPlacement.
struct DisplayPlacement {
  int64 display_id;
  int64 parent_display_id;
  Position position;
  int32 offset;
  OffsetReference offset_reference;
};

// Corresponds to display::DisplayLayout.
struct DisplayLayout {
  bool default_unified;
  int64 primary_display_id;
  array<DisplayPlacement> placement_list;
};