| Index: mojo/converters/geometry/geometry_type_converters.cc
|
| diff --git a/mojo/converters/geometry/geometry_type_converters.cc b/mojo/converters/geometry/geometry_type_converters.cc
|
| index ea9166d39b26c31a0b76367873582c9f838ecbd3..fb17e0321a56ae7445791f881d07e3c10c5ad6b9 100644
|
| --- a/mojo/converters/geometry/geometry_type_converters.cc
|
| +++ b/mojo/converters/geometry/geometry_type_converters.cc
|
| @@ -87,4 +87,19 @@ gfx::RectF TypeConverter<gfx::RectF, RectFPtr>::Convert(const RectFPtr& input) {
|
| return gfx::RectF(input->x, input->y, input->width, input->height);
|
| }
|
|
|
| +// static
|
| +Rect TypeConverter<Rect, gfx::Rect>::Convert(const gfx::Rect& input) {
|
| + Rect rect;
|
| + rect.x = input.x();
|
| + rect.y = input.y();
|
| + rect.width = input.width();
|
| + rect.height = input.height();
|
| + return rect;
|
| +}
|
| +
|
| +// static
|
| +gfx::Rect TypeConverter<gfx::Rect, Rect>::Convert(const Rect& input) {
|
| + return gfx::Rect(input.x, input.y, input.width, input.height);
|
| +}
|
| +
|
| } // namespace mojo
|
|
|