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

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

Issue 2715153004: Mojo: Support enums as map keys in WTF (Closed)
Patch Set: Address review comments Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 mojo.test; 5 module mojo.test;
6 6
7 struct TestWTFCodeGeneration { 7 struct TestWTFCodeGeneration {
8 string str; 8 string str;
9 string? nullable_str; 9 string? nullable_str;
10 array<string> strs; 10 array<string> strs;
11 array<string?> nullable_strs; 11 array<string?> nullable_strs;
12 array<array<int32>> arrays; 12 array<array<int32>> arrays;
13 array<bool> bools; 13 array<bool> bools;
14 array<handle<message_pipe>> handles; 14 array<handle<message_pipe>> handles;
15 map<string, string?> str_map; 15 map<string, string?> str_map;
16 map<int32, array<int32>> array_map; 16 map<int32, array<int32>> array_map;
17 map<int32, handle<message_pipe>> handle_map; 17 map<int32, handle<message_pipe>> handle_map;
18 array<map<string, string?>> str_maps; 18 array<map<string, string?>> str_maps;
19 }; 19 };
20 20
21 union TestWTFCodeGeneration2 { 21 union TestWTFCodeGeneration2 {
22 string str; 22 string str;
23 array<string> strs; 23 array<string> strs;
24 map<string, string?> str_map; 24 map<string, string?> str_map;
25 }; 25 };
26 26
27 struct TestWTFStruct { 27 struct TestWTFStruct {
28 enum NestedEnum {
29 E0,
30 E1,
31 };
28 string str; 32 string str;
29 int32 integer; 33 int32 integer;
30 }; 34 };
31 35
32 interface TestWTF { 36 interface TestWTF {
37 enum NestedEnum {
38 E0,
39 E1,
40 };
33 EchoString(string? str) => (string? str); 41 EchoString(string? str) => (string? str);
34 EchoStringArray(array<string?>? arr) => (array<string?>? arr); 42 EchoStringArray(array<string?>? arr) => (array<string?>? arr);
35 EchoStringMap(map<string, string?>? str_map) 43 EchoStringMap(map<string, string?>? str_map)
36 => (map<string, string?>? str_map); 44 => (map<string, string?>? str_map);
37 }; 45 };
46
47 enum TopLevelEnum {
48 E0,
49 E1,
50 };
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/wtf_map_unittest.cc ('k') | mojo/public/tools/bindings/blink_bindings_configuration.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698