• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2014 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
5module gfx.mojom;
6
7// Don't make backwards-incompatible changes to this definition!
8// It's used in PageState serialization, so backwards incompatible changes
9// would cause stored PageState objects to be un-parseable.
10struct Point {
11  int32 x;
12  int32 y;
13};
14
15// Don't make backwards-incompatible changes to this definition!
16// It's used in PageState serialization, so backwards incompatible changes
17// would cause stored PageState objects to be un-parseable. Please contact the
18// page state serialization owners before making such a change.
19struct PointF {
20  float x;
21  float y;
22};
23
24struct Size {
25  int32 width;
26  int32 height;
27};
28
29struct SizeF {
30  float width;
31  float height;
32};
33
34struct Rect {
35  int32 x;
36  int32 y;
37  int32 width;
38  int32 height;
39};
40
41struct RectF {
42  float x;
43  float y;
44  float width;
45  float height;
46};
47
48struct Insets {
49  int32 top;
50  int32 left;
51  int32 bottom;
52  int32 right;
53};
54
55struct InsetsF {
56  float top;
57  float left;
58  float bottom;
59  float right;
60};
61
62struct Vector2d {
63  int32 x;
64  int32 y;
65};
66
67struct Vector2dF {
68  float x;
69  float y;
70};
71
72struct ScrollOffset {
73  float x;
74  float y;
75};
76