Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: ui/mojo/geometry/geometry.mojom

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 { 12 struct PointF {
13 float x; 13 float x;
14 float y; 14 float y;
15 }; 15 };
16 16
17 struct Size { 17 struct Size {
18 int32 width; 18 int32 width;
19 int32 height; 19 int32 height;
20 }; 20 };
21 21
22 struct SizeF {
23 int32 width;
24 int32 height;
25 };
26
22 struct Rect { 27 struct Rect {
23 int32 x; 28 int32 x;
24 int32 y; 29 int32 y;
25 int32 width; 30 int32 width;
26 int32 height; 31 int32 height;
27 }; 32 };
28 33
29 struct RectF { 34 struct RectF {
30 float x; 35 float x;
31 float y; 36 float y;
32 float width; 37 float width;
33 float height; 38 float height;
34 }; 39 };
35 40
36 struct Transform { 41 struct Transform {
37 // Row major order. 42 // Row major order.
38 array<float, 16> matrix; 43 array<float, 16> matrix;
39 }; 44 };
40 45
41 struct Insets { 46 struct Insets {
42 int32 top; 47 int32 top;
43 int32 left; 48 int32 left;
44 int32 bottom; 49 int32 bottom;
45 int32 right; 50 int32 right;
46 }; 51 };
52
53 struct InsetsF {
54 float top;
55 float left;
56 float bottom;
57 float right;
58 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698