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

Unified Diff: mojo/examples/pepper_container_app/type_converters.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/common/common_type_converters.h ('k') | mojo/public/cpp/bindings/array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/pepper_container_app/type_converters.h
diff --git a/mojo/examples/pepper_container_app/type_converters.h b/mojo/examples/pepper_container_app/type_converters.h
index 025cbb46c1d9e1339be2a52d9c6ad1cbc4823d06..3938b6e8dff581c38d0620db6f3af10921eaf020 100644
--- a/mojo/examples/pepper_container_app/type_converters.h
+++ b/mojo/examples/pepper_container_app/type_converters.h
@@ -27,6 +27,8 @@ class TypeConverter<Point, PP_Point> {
return PP_MakePoint(static_cast<int32_t>(input.x()),
static_cast<int32_t>(input.y()));
}
+
+ MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
};
template <>
@@ -43,6 +45,8 @@ class TypeConverter<Size, PP_Size> {
return PP_MakeSize(static_cast<int32_t>(input.width()),
static_cast<int32_t>(input.height()));
}
+
+ MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
};
template <>
@@ -60,6 +64,8 @@ class TypeConverter<Rect, PP_Rect> {
input.size().To<PP_Size>() };
return rect;
}
+
+ MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
};
} // namespace mojo
« no previous file with comments | « mojo/common/common_type_converters.h ('k') | mojo/public/cpp/bindings/array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698