| 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 sample { | 5 module sample { |
| 6 | 6 |
| 7 struct Coord { | |
| 8 int32 x; | |
| 9 int32 y; | |
| 10 }; | |
| 11 | |
| 12 [Peer=ProviderClient] | 7 [Peer=ProviderClient] |
| 13 interface Provider { | 8 interface Provider { |
| 14 EchoString(string a) => (string a); | 9 EchoString(string a) => (string a); |
| 15 EchoStrings(string a, string b) => (string a, string b); | 10 EchoStrings(string a, string b) => (string a, string b); |
| 16 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); | 11 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); |
| 17 //EchoVoid() => (); | |
| 18 //MakeCoord(int32 x, int32 y) => (Coord coord); | |
| 19 //Make2Coords(int32 x1, int32 y1, int32 x2, int32 y2) => | |
| 20 // (Coord coord1, Coord coord2); | |
| 21 }; | 12 }; |
| 22 | 13 |
| 23 [Peer=Provider] | 14 [Peer=Provider] |
| 24 interface ProviderClient { | 15 interface ProviderClient { |
| 25 }; | 16 }; |
| 26 | 17 |
| 27 } | 18 } |
| OLD | NEW |