Home | History | Annotate | Download | only in mojo
      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 
      5 module 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.
     10 struct 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.
     19 struct PointF {
     20   float x;
     21   float y;
     22 };
     23 
     24 struct Size {
     25   int32 width;
     26   int32 height;
     27 };
     28 
     29 struct SizeF {
     30   float width;
     31   float height;
     32 };
     33 
     34 struct Rect {
     35   int32 x;
     36   int32 y;
     37   int32 width;
     38   int32 height;
     39 };
     40 
     41 struct RectF {
     42   float x;
     43   float y;
     44   float width;
     45   float height;
     46 };
     47 
     48 struct Insets {
     49   int32 top;
     50   int32 left;
     51   int32 bottom;
     52   int32 right;
     53 };
     54 
     55 struct InsetsF {
     56   float top;
     57   float left;
     58   float bottom;
     59   float right;
     60 };
     61 
     62 struct Vector2d {
     63   int32 x;
     64   int32 y;
     65 };
     66 
     67 struct Vector2dF {
     68   float x;
     69   float y;
     70 };
     71 
     72 struct ScrollOffset {
     73   float x;
     74   float y;
     75 };
     76