| 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 [DartPackage="_mojo_for_test_only"] | 5 [DartPackage="_mojo_for_test_only"] |
| 6 module dart_to_cpp; | 6 module dart_to_cpp; |
| 7 | 7 |
| 8 // This struct encompasses all of the basic types, so that they | 8 // This struct encompasses all of the basic types, so that they |
| 9 // may be sent from C++ to Dart and back for validation. | 9 // may be sent from C++ to Dart and back for validation. |
| 10 struct EchoArgs { | 10 struct EchoArgs { |
| 11 int64 si64; | 11 int64 si64; |
| 12 int32 si32; | 12 int32 si32; |
| 13 int16 si16; | 13 int16 si16; |
| 14 int8 si8; | 14 int8 si8; |
| 15 uint64 ui64; | 15 uint64 ui64; |
| 16 uint32 ui32; | 16 uint32 ui32; |
| 17 uint16 ui16; | 17 uint16 ui16; |
| 18 uint8 ui8; | 18 uint8 ui8; |
| 19 float float_val; | 19 float float_val; |
| 20 float float_inf; | 20 float float_inf; |
| 21 float float_nan; | 21 float float_nan; |
| 22 double double_val; | 22 double double_val; |
| 23 double double_inf; | 23 double double_inf; |
| 24 double double_nan; | 24 double double_nan; |
| 25 string? name; | 25 string? name; |
| 26 array<string>? string_array; | 26 array<string>? string_array; |
| 27 handle<message_pipe>? message_handle; | 27 handle<message_pipe>? message_handle; |
| 28 handle<data_pipe_consumer>? data_handle; | 28 handle<data_pipe_consumer>? data_handle; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 45 // Responses from specific tests. | 45 // Responses from specific tests. |
| 46 PingResponse(); | 46 PingResponse(); |
| 47 EchoResponse(EchoArgsList list); | 47 EchoResponse(EchoArgsList list); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 interface DartSide { | 50 interface DartSide { |
| 51 SetClient(CppSide cppSide); | 51 SetClient(CppSide cppSide); |
| 52 Ping(); | 52 Ping(); |
| 53 Echo(int32 numIterations, EchoArgs arg); | 53 Echo(int32 numIterations, EchoArgs arg); |
| 54 }; | 54 }; |
| OLD | NEW |