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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/interfaces/bindings/tests/test_wtf_types.mojom
diff --git a/mojo/public/interfaces/bindings/tests/test_wtf_types.mojom b/mojo/public/interfaces/bindings/tests/test_wtf_types.mojom
index 2fdbea80b6677dca45b24eb1efa3c143badc253e..183f184ef342049bee3c5742bdeeaa5eee7c2dd5 100644
--- a/mojo/public/interfaces/bindings/tests/test_wtf_types.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_wtf_types.mojom
@@ -25,13 +25,26 @@ union TestWTFCodeGeneration2 {
};
struct TestWTFStruct {
+ enum NestedEnum {
+ E0,
+ E1,
+ };
string str;
int32 integer;
};
interface TestWTF {
+ enum NestedEnum {
+ E0,
+ E1,
+ };
EchoString(string? str) => (string? str);
EchoStringArray(array<string?>? arr) => (array<string?>? arr);
EchoStringMap(map<string, string?>? str_map)
=> (map<string, string?>? str_map);
};
+
+enum TopLevelEnum {
+ E0,
+ E1,
+};
« 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