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

Side by Side Diff: mojo/public/interfaces/bindings/tests/rect.mojom

Issue 2259283003: Mojo C++ bindings: share DataView class between chromium and blink variants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@92_change_traits_param
Patch Set: . Created 4 years, 4 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 [JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"] 5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"]
6 module mojo.test; 6 module mojo.test;
7 7
8 struct Rect { 8 struct Rect {
9 int32 x; 9 int32 x;
10 int32 y; 10 int32 y;
11 int32 width; 11 int32 width;
12 int32 height; 12 int32 height;
13 }; 13 };
14 14
15 // A copy of Rect that can be typemapped. Arrays of Rect are currently used, 15 // A copy of Rect that is typemapped differently in the chromium and blink
16 // which do not support typemapping. 16 // variants.
17 struct TypemappedRect { 17 struct TypemappedRect {
18 int32 x; 18 int32 x;
19 int32 y; 19 int32 y;
20 int32 width; 20 int32 width;
21 int32 height; 21 int32 height;
22 }; 22 };
23
24 // A copy of Rect that is typemapped to the same custom type in the chromium and
25 // blink variants.
26 struct SharedTypemappedRect {
27 int32 x;
28 int32 y;
29 int32 width;
30 int32 height;
31 };
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/wtf_types_unittest.cc ('k') | mojo/public/interfaces/bindings/tests/test_native_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698