diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 09:48:41 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 09:48:41 +0000 |
commit | 8311e2522cedbd52e3b4ece6f98792f784628815 (patch) | |
tree | 4b44e8586a97571da8e1b9b84204e0aec443c0fe /mojo/examples/pepper_container_app | |
parent | a3f9efb6985ff67c6cf5484e1da6c431937edfc3 (diff) | |
download | chromium_src-8311e2522cedbd52e3b4ece6f98792f784628815.zip chromium_src-8311e2522cedbd52e3b4ece6f98792f784628815.tar.gz chromium_src-8311e2522cedbd52e3b4ece6f98792f784628815.tar.bz2 |
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
Diffstat (limited to 'mojo/examples/pepper_container_app')
-rw-r--r-- | mojo/examples/pepper_container_app/type_converters.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<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 |