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

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

Issue 1524703002: [mojo] Support native types with mojom wire format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bindings-5-pickles
Patch Set: doc Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.test; 5 module mojo.test;
6 6
7 import "mojo/public/interfaces/bindings/tests/rect.mojom";
8
7 // Used to verify that structs can be declared with no body in mojom. 9 // Used to verify that structs can be declared with no body in mojom.
8 10
9 [native=True] 11 [native=True]
10 struct PickledStruct; 12 struct PickledStruct;
11 13
12 interface PicklePasser { 14 interface PicklePasser {
13 PassPickle(PickledStruct pickle) => (PickledStruct passed); 15 PassPickle(PickledStruct pickle) => (PickledStruct passed);
14 }; 16 };
17
18 // Used to verify support for native serialization of mojom-defined structs.
19 // This is tested with a typemap applied to the Rect type from rect.mojom.
20
21 interface RectService {
22 AddRect(Rect r);
23 GetLargestRect() => (Rect largest);
24 };
25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698