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

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

Issue 2928413002: Add RectF and PointF typemaps in blink. (Closed)
Patch Set: address comment Created 3 years, 6 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
index 3e1e17d4f7ade10aff445d496ec483823b8f65e4..4b35c2f6bf7b12aafe3fd1bce33fd1b694db7379 100644
--- a/third_party/WebKit/Source/platform/mojo/Geometry.typemap
+++ b/third_party/WebKit/Source/platform/mojo/Geometry.typemap
@@ -3,7 +3,11 @@
# found in the LICENSE file.
mojom = "//ui/gfx/geometry/mojo/geometry.mojom"
-public_headers = [ "//third_party/WebKit/public/platform/WebSize.h" ]
+public_headers = [
+ "//third_party/WebKit/public/platform/WebFloatRect.h",
+ "//third_party/WebKit/public/platform/WebFloatPoint.h",
+ "//third_party/WebKit/public/platform/WebSize.h",
+]
traits_headers = [
"//third_party/WebKit/Source/platform/mojo/GeometryStructTraits.h",
"//ui/gfx/geometry/mojo/geometry_struct_traits.h",
@@ -17,4 +21,8 @@ deps = [
# 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" ]
+type_mappings = [
+ "gfx.mojom.PointF=::blink::WebFloatPoint",
+ "gfx.mojom.RectF=::blink::WebFloatRect",
+ "gfx.mojom.Size=::blink::WebSize",
+]

Powered by Google App Engine
This is Rietveld 408576698