Home
last modified time | relevance | path

Searched refs:MojomType (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/mojo/public/cpp/bindings/lib/
Dserialization.h31 template <typename MojomType, typename EnableType = void>
34 template <typename MojomType>
36 MojomType,
38 BelongsTo<MojomType, MojomTypeCategory::STRUCT>::value>::type> {
44 mojo::internal::Serialize<MojomType>(input, buffer, writer, context);
48 template <typename MojomType>
50 MojomType,
52 BelongsTo<MojomType, MojomTypeCategory::UNION>::value>::type> {
58 mojo::internal::Serialize<MojomType>(input, buffer, writer,
63 template <typename MojomType, typename UserType>
[all …]
Darray_serialization.h94 template <typename MojomType,
101 template <typename MojomType,
105 MojomType,
108 typename std::enable_if<BelongsTo<typename MojomType::Element,
111 using Data = typename MojomTypeTraits<MojomType>::Data;
113 using Element = typename MojomType::Element;
169 template <typename MojomType,
173 MojomType,
176 typename std::enable_if<BelongsTo<typename MojomType::Element,
179 using Data = typename MojomTypeTraits<MojomType>::Data;
[all …]
Dserialization_forward.h25 template <typename MojomType, typename MaybeConstUserType>
36 template <typename MojomType,
42 Serializer<MojomType, typename std::remove_reference<InputUserType>::type>:: in Serialize()
47 template <typename MojomType,
54 return Serializer<MojomType, InputUserType>::Deserialize( in Deserialize()
58 template <typename MojomType,
70 Serialize<MojomType>(*input, buffer, writer, std::forward<Args>(args)...); in Serialize()
73 template <typename MojomType,
86 return Deserialize<MojomType>(std::forward<DataType>(input), &output->value(), in Deserialize()
Dbindings_internal.h322 template <typename MojomType, typename T>
323 T ConvertEnumValue(MojomType input) {
325 bool result = EnumTraits<MojomType, T>::FromMojom(input, &output);
/external/libchrome/mojo/public/cpp/bindings/tests/
Dserialization_warning_unittest.cc49 using MojomType = typename T::Struct::DataView; in TestWarning() typedef
55 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TestWarning()
57 mojo::internal::Serialize<MojomType>(obj, message.payload_buffer(), &writer, in TestWarning()
62 template <typename MojomType, typename T>
70 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TestArrayWarning()
72 mojo::internal::Serialize<MojomType>(obj, message.payload_buffer(), &writer, in TestArrayWarning()
80 using MojomType = typename T::Struct::DataView; in TestUnionWarning() typedef
86 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TestUnionWarning()
88 mojo::internal::Serialize<MojomType>(obj, message.payload_buffer(), &writer, in TestUnionWarning()
160 using MojomType = ArrayDataView<ArrayDataView<ScopedHandle>>; in TEST_F() typedef
[all …]
Dwtf_types_unittest.cc110 using MojomType = ArrayDataView<StringDataView>; in TEST_F() typedef
117 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TEST_F()
121 mojo::internal::Serialize<MojomType>(cloned_strs, message.payload_buffer(), in TEST_F()
125 mojo::internal::Deserialize<MojomType>(writer.data(), &strs2, &context); in TEST_F()
131 using MojomType = ArrayDataView<StringDataView>; in TEST_F() typedef
143 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TEST_F()
147 mojo::internal::Serialize<MojomType>(cloned_strs, message.payload_buffer(), in TEST_F()
151 mojo::internal::Deserialize<MojomType>(writer.data(), &strs2, &context); in TEST_F()
157 using MojomType = ArrayDataView<StringDataView>; in TEST_F() typedef
164 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TEST_F()
[all …]
Dunion_unittest.cc705 using MojomType = MapDataView<StringDataView, PodUnionDataView>; in TEST() typedef
718 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TEST()
723 mojo::internal::Serialize<MojomType>(map, message.payload_buffer(), &writer, in TEST()
728 mojo::internal::Deserialize<MojomType>(writer.data(), &map2, &context); in TEST()
735 using MojomType = MapDataView<StringDataView, PodUnionDataView>; in TEST() typedef
747 typename mojo::internal::MojomTypeTraits<MojomType>::Data::BufferWriter in TEST()
752 mojo::internal::Serialize<MojomType>(map, message.payload_buffer(), &writer, in TEST()
757 mojo::internal::Deserialize<MojomType>(writer.data(), &map2, &context); in TEST()
/external/libchrome/mojo/public/cpp/test_support/
Dtest_utils.h17 template <typename MojomType, typename UserType>
19 mojo::Message message = MojomType::SerializeAsMessage(input); in SerializeAndDeserialize()
26 return MojomType::DeserializeFromMessage(std::move(message), output); in SerializeAndDeserialize()
/external/libchrome/mojo/public/cpp/bindings/
Denum_traits.h24 template <typename MojomType, typename T>
DREADME.md1372 strings in this list are of the format `"MojomType=CppType"`, where
1373 `MojomType` must be a fully qualified Mojom typename and `CppType` must be a
1378 so containers of `MojomType` will translate to containers of `CppType`
1382 * `nullable_is_same_type`: By default a non-nullable `MojomType` will be
1383 mapped to `CppType` while a nullable `MojomType?` will be mapped to
1385 wrapper is omitted for nullable `MojomType?` values, but the