Index: mojo/common/values.mojom |
diff --git a/mojo/common/values.mojom b/mojo/common/values.mojom |
index 822df34a1ed61caa3269164567930fcf13631362..7107b8937bb4feb997235ed8e154b2e33bb8f103 100644 |
--- a/mojo/common/values.mojom |
+++ b/mojo/common/values.mojom |
@@ -4,8 +4,28 @@ |
module mojo.common.mojom; |
-[Native] |
-struct ListValue; |
+union Value { |
+ NullValue? null_value; |
+ bool bool_value; |
+ int32 int_value; |
+ double double_value; |
+ string string_value; |
+ array<uint8> binary_value; |
+ DictionaryValue dictionary_value; |
+ ListValue list_value; |
+}; |
+ |
+struct ListValue { |
+ array<Value> values; |
+}; |
+ |
+struct DictionaryValue { |
+ map<string, Value> values; |
+}; |
+ |
+// An empty struct representing a null base::Value. |
+struct NullValue { |
+}; |
[Native] |
-struct DictionaryValue; |
+struct LegacyListValue; |
Ken Rockot(use gerrit already)
2016/12/16 16:39:57
Can we add a TODO to remote this ASAP?
Sam McNally
2016/12/18 23:18:31
Done.
|