| 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; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 int32 height; | 32 int32 height; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 struct RectF { | 35 struct RectF { |
| 36 float x; | 36 float x; |
| 37 float y; | 37 float y; |
| 38 float width; | 38 float width; |
| 39 float height; | 39 float height; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 struct Transform { | |
| 43 // Row major order. | |
| 44 array<float, 16> matrix; | |
| 45 }; | |
| 46 | |
| 47 struct Insets { | 42 struct Insets { |
| 48 int32 top; | 43 int32 top; |
| 49 int32 left; | 44 int32 left; |
| 50 int32 bottom; | 45 int32 bottom; |
| 51 int32 right; | 46 int32 right; |
| 52 }; | 47 }; |
| 53 | 48 |
| 54 struct InsetsF { | 49 struct InsetsF { |
| 55 float top; | 50 float top; |
| 56 float left; | 51 float left; |
| 57 float bottom; | 52 float bottom; |
| 58 float right; | 53 float right; |
| 59 }; | 54 }; |
| OLD | NEW |