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

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

Issue 377713004: Support packed arrays of booleans in Mojo messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified Decoder.prototype.decodeBoolArray() Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « mojo/bindings/js/codec_unittests.js ('k') | mojo/public/js/bindings/codec.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 import "sample_import.mojom" 5 import "sample_import.mojom"
6 import "sample_import2.mojom" 6 import "sample_import2.mojom"
7 7
8 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] 8 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"]
9 module sample { 9 module sample {
10 10
(...skipping 22 matching lines...) Expand all
33 bool b@3; 33 bool b@3;
34 bool c@4; 34 bool c@4;
35 Bar bar@5; 35 Bar bar@5;
36 Bar[] extra_bars@7; 36 Bar[] extra_bars@7;
37 uint8[] data@6; 37 uint8[] data@6;
38 handle<message_pipe> source@9; 38 handle<message_pipe> source@9;
39 handle<data_pipe_consumer>[] input_streams@10; 39 handle<data_pipe_consumer>[] input_streams@10;
40 handle<data_pipe_producer>[] output_streams@11; 40 handle<data_pipe_producer>[] output_streams@11;
41 bool[][] array_of_array_of_bools@12; 41 bool[][] array_of_array_of_bools@12;
42 string[][][] multi_array_of_strings@13; 42 string[][][] multi_array_of_strings@13;
43 bool[] array_of_bools@14;
43 }; 44 };
44 45
45 struct DefaultsTest { 46 struct DefaultsTest {
46 int8 a0@0 = -12; 47 int8 a0@0 = -12;
47 uint8 a1@1 = sample.kTwelve; 48 uint8 a1@1 = sample.kTwelve;
48 int16 a2@2 = 1234; 49 int16 a2@2 = 1234;
49 uint16 a3@3 = 34567; 50 uint16 a3@3 = 34567;
50 int32 a4@4 = 123456; 51 int32 a4@4 = 123456;
51 // TODO(vtl): crbug.com/375522 52 // TODO(vtl): crbug.com/375522
52 uint32 a5@5 /* = 3456789012 */; 53 uint32 a5@5 /* = 3456789012 */;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 DidFrobinate@0(int32 result@0); 101 DidFrobinate@0(int32 result@0);
101 }; 102 };
102 103
103 // This interface is referenced above where it is defined. It also refers to 104 // This interface is referenced above where it is defined. It also refers to
104 // itself from a method. 105 // itself from a method.
105 interface Port { 106 interface Port {
106 PostMessage@0(string message_text@0, Port port@1); 107 PostMessage@0(string message_text@0, Port port@1);
107 }; 108 };
108 109
109 } 110 }
OLDNEW
« no previous file with comments | « mojo/bindings/js/codec_unittests.js ('k') | mojo/public/js/bindings/codec.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698