Chromium Code Reviews| OLD | NEW |
|---|---|
| 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.common.mojom; | 5 module mojo.common.mojom; |
| 6 | 6 |
| 7 [Native] | 7 union Value { |
| 8 struct ListValue; | 8 NullValue? null_value; |
| 9 bool bool_value; | |
| 10 int32 int_value; | |
| 11 double double_value; | |
| 12 string string_value; | |
| 13 array<uint8> binary_value; | |
| 14 DictionaryValue dictionary_value; | |
| 15 ListValue list_value; | |
| 16 }; | |
| 17 | |
| 18 struct ListValue { | |
| 19 array<Value> values; | |
| 20 }; | |
| 21 | |
| 22 struct DictionaryValue { | |
| 23 map<string, Value> values; | |
| 24 }; | |
| 25 | |
| 26 // An empty struct representing a null base::Value. | |
| 27 struct NullValue { | |
| 28 }; | |
| 9 | 29 |
| 10 [Native] | 30 [Native] |
| 11 struct DictionaryValue; | 31 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.
| |
| OLD | NEW |