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

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

Issue 1713203002: Mojo C++ bindings: support sync methods - part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 interface TestSync { 7 interface TestCodeGeneration {
8 [Sync] 8 [Sync]
9 Get() => (int32 result); 9 NoInput() => (int32 result);
10 10
11 [Sync] 11 [Sync]
12 Set(int32 value) => (); 12 NoOutput(int32 value) => ();
13 13
14 [Sync] 14 [Sync]
15 NoInOut() => ();
16
17 [Sync]
18 HaveInOut(int32 value1, int32 value2) => (int32 result1, int32 result2);
19 };
20
21 interface TestSync {
22 [Sync]
15 Ping() => (); 23 Ping() => ();
16 24
17 [Sync] 25 [Sync]
18 Echo(int32 value) => (int32 result); 26 Echo(int32 value) => (int32 result);
27
28 AsyncEcho(int32 value) => (int32 result);
19 }; 29 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698