OLD | NEW |
---|---|
1 module mojo { | 1 module mojo { |
2 | 2 |
3 // This struct encompasses all of the basic types, so that they | |
4 // may be sent from C++ to JS and back for validation. | |
3 struct EchoArgs { | 5 struct EchoArgs { |
4 int64 si64; | 6 int64 si64; |
5 int32 si32; | 7 int32 si32; |
6 int16 si16; | 8 int16 si16; |
7 int8 si8; | 9 int8 si8; |
8 uint64 ui64; | 10 uint64 ui64; |
9 uint32 ui32; | 11 uint32 ui32; |
10 uint16 ui16; | 12 uint16 ui16; |
11 uint8 ui8; | 13 uint8 ui8; |
14 float float_val; | |
15 float float_inf; | |
16 float float_nan; | |
17 double double_val; | |
18 double double_inf; | |
19 double double_nan; | |
12 string name; | 20 string name; |
13 }; | 21 }; |
14 | 22 |
15 [Peer=RendererTarget] | 23 [Peer=RendererTarget] |
16 interface BrowserTarget { | 24 interface BrowserTarget { |
17 PingResponse(); | 25 PingResponse(); |
18 EchoResponse(EchoArgs arg1, EchoArgs arg2); | 26 EchoResponse(EchoArgs arg1, EchoArgs arg2); |
19 }; | 27 }; |
20 | 28 |
21 [Peer=BrowserTarget] | 29 [Peer=BrowserTarget] |
22 interface RendererTarget { | 30 interface RendererTarget { |
23 Ping(); | 31 Ping(); |
24 Echo(EchoArgs arg); | 32 Echo(EchoArgs arg); |
25 }; | 33 }; |
26 | 34 |
27 } | 35 } |
OLD | NEW |