Chromium Code Reviews| 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 module mojo { | 5 module mojo { |
| 6 | 6 |
| 7 struct Point { | 7 struct Point { |
| 8 int32 x; | 8 int32 x; |
| 9 int32 y; | 9 int32 y; |
| 10 }; | 10 }; |
| 11 | 11 |
| 12 struct PointF { | |
| 13 float x; | |
| 14 float y; | |
| 15 }; | |
| 16 | |
| 12 struct Size { | 17 struct Size { |
| 13 int32 width; | 18 int32 width; |
| 14 int32 height; | 19 int32 height; |
| 15 }; | 20 }; |
| 16 | 21 |
| 17 struct Rect { | 22 struct Rect { |
| 18 int32 x; | 23 int32 x; |
| 19 int32 y; | 24 int32 y; |
| 20 int32 width; | 25 int32 width; |
| 21 int32 height; | 26 int32 height; |
| 22 }; | 27 }; |
| 23 | 28 |
| 29 struct Transform { | |
| 30 // Should have exactly 16 entries. | |
| 31 float[] matrix; | |
| 32 }; | |
| 33 | |
| 24 } | 34 } |
| OLD | NEW |