From 8311e2522cedbd52e3b4ece6f98792f784628815 Mon Sep 17 00:00:00 2001 From: "yzshen@chromium.org" Date: Tue, 29 Apr 2014 09:48:41 +0000 Subject: Add support for mojo::TypeConverter to control how convenient conversion should be. BUG=None TEST=None Review URL: https://codereview.chromium.org/209453003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266814 0039d316-1c4b-4281-b951-d872f2087c98 --- mojo/examples/pepper_container_app/type_converters.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mojo/examples/pepper_container_app') diff --git a/mojo/examples/pepper_container_app/type_converters.h b/mojo/examples/pepper_container_app/type_converters.h index 025cbb4..3938b6e 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 { return PP_MakePoint(static_cast(input.x()), static_cast(input.y())); } + + MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION(); }; template <> @@ -43,6 +45,8 @@ class TypeConverter { return PP_MakeSize(static_cast(input.width()), static_cast(input.height())); } + + MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION(); }; template <> @@ -60,6 +64,8 @@ class TypeConverter { input.size().To() }; return rect; } + + MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION(); }; } // namespace mojo -- cgit v1.1