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

Side by Side Diff: mojo/common/values.mojom

Issue 2577563002: Add struct traits for base::Value. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « mojo/common/test_common_custom_types.mojom ('k') | mojo/common/values.typemap » ('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 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.
OLDNEW
« no previous file with comments | « mojo/common/test_common_custom_types.mojom ('k') | mojo/common/values.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698