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

Unified Diff: third_party/WebKit/Source/platform/mojo/Geometry.typemap

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/mojo/Geometry.typemap
diff --git a/third_party/WebKit/Source/platform/mojo/Geometry.typemap b/third_party/WebKit/Source/platform/mojo/Geometry.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..75c35459fc79b8f882a5169651e7150c5050cf70
--- /dev/null
+++ b/third_party/WebKit/Source/platform/mojo/Geometry.typemap
@@ -0,0 +1,17 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+mojom = "//ui/gfx/geometry/mojo/geometry.mojom"
+public_headers = [ "//third_party/WebKit/public/platform/WebSize.h" ]
+traits_headers =
+ [ "//third_party/WebKit/Source/platform/mojo/GeometryStructTraits.h" ]
+
+# Note: consumers of this typemap must themselves depend on platform.
+deps = [
+ "//mojo/public/cpp/bindings",
+]
+
+# TODO(zqzhang): ideally, gfx.mojom.Size should be mapped into ::blink::IntSize.
+# However that introduces an link issue on Windows. See https://crbug.com/653323
+type_mappings = [ "gfx.mojom.Size=::blink::WebSize" ]
« no previous file with comments | « third_party/WebKit/Source/platform/mojo/DEPS ('k') | third_party/WebKit/Source/platform/mojo/GeometryStructTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698