| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(beng): should be gfx.mojom; | 5 // TODO(beng): should be gfx.mojom; |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 struct Point { | 8 struct Point { |
| 9 int32 x; | 9 int32 x; |
| 10 int32 y; | 10 int32 y; |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 struct PointF { | 13 struct PointF { |
| 14 float x; | 14 float x; |
| 15 float y; | 15 float y; |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 struct Size { | 18 struct Size { |
| 19 int32 width; | 19 int32 width; |
| 20 int32 height; | 20 int32 height; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 struct SizeF { |
| 24 int32 width; |
| 25 int32 height; |
| 26 }; |
| 27 |
| 23 struct Rect { | 28 struct Rect { |
| 24 int32 x; | 29 int32 x; |
| 25 int32 y; | 30 int32 y; |
| 26 int32 width; | 31 int32 width; |
| 27 int32 height; | 32 int32 height; |
| 28 }; | 33 }; |
| 29 | 34 |
| 30 struct RectF { | 35 struct RectF { |
| 31 float x; | 36 float x; |
| 32 float y; | 37 float y; |
| 33 float width; | 38 float width; |
| 34 float height; | 39 float height; |
| 35 }; | 40 }; |
| 36 | 41 |
| 37 struct Transform { | 42 struct Transform { |
| 38 // Row major order. | 43 // Row major order. |
| 39 array<float, 16> matrix; | 44 array<float, 16> matrix; |
| 40 }; | 45 }; |
| 41 | 46 |
| 42 struct Insets { | 47 struct Insets { |
| 43 int32 top; | 48 int32 top; |
| 44 int32 left; | 49 int32 left; |
| 45 int32 bottom; | 50 int32 bottom; |
| 46 int32 right; | 51 int32 right; |
| 47 }; | 52 }; |
| 53 |
| 54 struct InsetsF { |
| 55 float top; |
| 56 float left; |
| 57 float bottom; |
| 58 float right; |
| 59 }; |
| OLD | NEW |