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

Unified Diff: mojo/services/native_viewport/geometry_conversions.h

Issue 209453003: Add support for mojo::TypeConverter to control how convenient conversion should be. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « mojo/services/gles2/command_buffer_type_conversions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/native_viewport/geometry_conversions.h
diff --git a/mojo/services/native_viewport/geometry_conversions.h b/mojo/services/native_viewport/geometry_conversions.h
index d459598fa48917b85d4c88880b8e67e780669251..27e9c5a99f51587a75fad4663b90aeee603d6cd4 100644
--- a/mojo/services/native_viewport/geometry_conversions.h
+++ b/mojo/services/native_viewport/geometry_conversions.h
@@ -22,6 +22,8 @@ public:
static gfx::Point ConvertTo(const Point& input) {
return gfx::Point(input.x(), input.y());
}
+
+ MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
};
template<>
@@ -36,6 +38,8 @@ public:
static gfx::Size ConvertTo(const Size& input) {
return gfx::Size(input.width(), input.height());
}
+
+ MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
};
template<>
@@ -51,6 +55,8 @@ class TypeConverter<Rect, gfx::Rect> {
return gfx::Rect(input.position().x(), input.position().y(),
input.size().width(), input.size().height());
}
+
+ MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
};
} // namespace mojo
« no previous file with comments | « mojo/services/gles2/command_buffer_type_conversions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698