| OLD | NEW |
| 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 mojom = "//ui/gfx/geometry/mojo/geometry.mojom" | 5 mojom = "//ui/gfx/geometry/mojo/geometry.mojom" |
| 6 public_headers = [ | 6 public_headers = [ |
| 7 "//third_party/WebKit/public/platform/WebFloatRect.h", | 7 "//third_party/WebKit/public/platform/WebFloatRect.h", |
| 8 "//third_party/WebKit/public/platform/WebFloatPoint.h", | 8 "//third_party/WebKit/public/platform/WebFloatPoint.h", |
| 9 "//third_party/WebKit/public/platform/WebRect.h", |
| 9 "//third_party/WebKit/public/platform/WebSize.h", | 10 "//third_party/WebKit/public/platform/WebSize.h", |
| 10 ] | 11 ] |
| 11 traits_headers = [ | 12 traits_headers = [ |
| 12 "//third_party/WebKit/Source/platform/mojo/GeometryStructTraits.h", | 13 "//third_party/WebKit/Source/platform/mojo/GeometryStructTraits.h", |
| 13 "//ui/gfx/geometry/mojo/geometry_struct_traits.h", | 14 "//ui/gfx/geometry/mojo/geometry_struct_traits.h", |
| 14 ] | 15 ] |
| 15 | 16 |
| 16 # Note: consumers of this typemap must themselves depend on platform. | 17 # Note: consumers of this typemap must themselves depend on platform. |
| 17 deps = [ | 18 deps = [ |
| 18 "//mojo/public/cpp/bindings", | 19 "//mojo/public/cpp/bindings", |
| 19 "//third_party/WebKit/Source/platform/mojo:geometry_struct_traits", | 20 "//third_party/WebKit/Source/platform/mojo:geometry_struct_traits", |
| 20 ] | 21 ] |
| 21 | 22 |
| 22 # TODO(zqzhang): ideally, gfx.mojom.Size should be mapped into ::blink::IntSize. | 23 # TODO(zqzhang): ideally, gfx.mojom.Size should be mapped into ::blink::IntSize. |
| 23 # However that introduces an link issue on Windows. See https://crbug.com/653323 | 24 # However that introduces an link issue on Windows. See https://crbug.com/653323 |
| 24 type_mappings = [ | 25 type_mappings = [ |
| 25 "gfx.mojom.PointF=::blink::WebFloatPoint", | 26 "gfx.mojom.PointF=::blink::WebFloatPoint", |
| 26 "gfx.mojom.RectF=::blink::WebFloatRect", | 27 "gfx.mojom.RectF=::blink::WebFloatRect", |
| 28 "gfx.mojom.Rect=::blink::WebRect", |
| 27 "gfx.mojom.Size=::blink::WebSize", | 29 "gfx.mojom.Size=::blink::WebSize", |
| 28 ] | 30 ] |
| OLD | NEW |