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

Unified Diff: mojo/common/common_custom_types.mojom

Issue 2379993003: Mojo C++ bindings: make String16 and gfx::Size available in Blink (Closed)
Patch Set: addressed esprehn and rockot's comments 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 side-by-side diff with in-line comments
Download patch
Index: mojo/common/common_custom_types.mojom
diff --git a/mojo/common/common_custom_types.mojom b/mojo/common/common_custom_types.mojom
index 6c0f4eba773e7103215a1394ea31fc71fde0635b..6dcdf76fec5f044a91ee0361cc9e278462eb4943 100644
--- a/mojo/common/common_custom_types.mojom
+++ b/mojo/common/common_custom_types.mojom
@@ -23,8 +23,13 @@ struct TimeDelta {
[Native]
struct TimeTicks;
-[Native]
-struct String16;
+// Corresponds to |base::string16| in base/strings/string16.h
+// Corresponds to |blink::WebString| in
+// third_party/WebKit/public/platform/WebString.h, and only accept non-null
+// |blink::WebString|.
+struct String16 {
+ array<uint16> data;
+};
// Corresponds to |base::UnguessableToken| in base/unguessable_token.h
struct UnguessableToken {
« no previous file with comments | « no previous file | mojo/common/common_custom_types_struct_traits.h » ('j') | mojo/common/common_custom_types_struct_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698