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

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

Issue 2379993003: Mojo C++ bindings: make String16 and gfx::Size available in Blink (Closed)
Patch Set: mapping back to WebSize :( Created 4 years, 2 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
« no previous file with comments | « no previous file | mojo/common/common_custom_types_struct_traits.h » ('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 [Native]
8 struct FilePath; 8 struct FilePath;
9 9
10 [Native] 10 [Native]
11 struct ListValue; 11 struct ListValue;
12 12
13 [Native] 13 [Native]
14 struct DictionaryValue; 14 struct DictionaryValue;
15 15
16 [Native] 16 [Native]
17 struct Time; 17 struct Time;
18 18
19 struct TimeDelta { 19 struct TimeDelta {
20 int64 microseconds; 20 int64 microseconds;
21 }; 21 };
22 22
23 [Native] 23 [Native]
24 struct TimeTicks; 24 struct TimeTicks;
25 25
26 [Native] 26 // Corresponds to |base::string16| in base/strings/string16.h
27 struct String16; 27 // Corresponds to |WTF::String| in
28 // third_party/WebKit/Source/wtf/text/WTFString.h.
29 struct String16 {
30 array<uint16> data;
31 };
28 32
29 // Corresponds to |base::UnguessableToken| in base/unguessable_token.h 33 // Corresponds to |base::UnguessableToken| in base/unguessable_token.h
30 struct UnguessableToken { 34 struct UnguessableToken {
31 uint64 high; 35 uint64 high;
32 uint64 low; 36 uint64 low;
33 }; 37 };
34 38
35 // Corresponds to |base::Version| in base/version.h 39 // Corresponds to |base::Version| in base/version.h
36 struct Version { 40 struct Version {
37 array<uint32> components; 41 array<uint32> components;
38 }; 42 };
OLDNEW
« no previous file with comments | « no previous file | mojo/common/common_custom_types_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698