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

Side by Side Diff: mojo/dart/unittests/embedder_tester/dart_to_cpp.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 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;
jamesr 2016/02/29 23:40:48 it looks like these were intentionally vertically
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698