| Index: mojo/converters/geometry/geometry_type_converters.h
|
| diff --git a/mojo/converters/geometry/geometry_type_converters.h b/mojo/converters/geometry/geometry_type_converters.h
|
| index 988bfadd3e4dc7ecec4c8633c278de4b1d5c7bce..72794b05beba5a99780913ff9236dddb4681ae6a 100644
|
| --- a/mojo/converters/geometry/geometry_type_converters.h
|
| +++ b/mojo/converters/geometry/geometry_type_converters.h
|
| @@ -89,6 +89,10 @@ struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Rect, Rect> {
|
|
|
| } // namespace mojo
|
|
|
| +inline bool operator==(const mojo::Size& lhs, const mojo::Size& rhs) {
|
| + return lhs.width == rhs.width && lhs.height == rhs.height;
|
| +}
|
| +
|
| inline bool operator==(const gfx::Size& lhs, const mojo::Size& rhs) {
|
| return lhs.width() == rhs.width && lhs.height() == rhs.height;
|
| }
|
| @@ -97,4 +101,16 @@ inline bool operator==(const mojo::Size& lhs, const gfx::Size& rhs) {
|
| return rhs == lhs;
|
| }
|
|
|
| +inline bool operator!=(const mojo::Size& lhs, const mojo::Size& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| +inline bool operator!=(const gfx::Size& lhs, const mojo::Size& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| +inline bool operator!=(const mojo::Size& lhs, const gfx::Size& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| #endif // MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_
|
|
|