Lines Matching defs:platform_handle
5 #include "mojo/public/cpp/system/platform_handle.h"
183 MojoPlatformHandle platform_handle;
184 PlatformHandle::ToMojoPlatformHandle(std::move(handle), &platform_handle);
188 MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle);
195 MojoPlatformHandle platform_handle;
196 platform_handle.struct_size = sizeof(platform_handle);
198 nullptr, &platform_handle);
201 return PlatformHandle::FromMojoPlatformHandle(&platform_handle);
206 MojoPlatformHandle platform_handle;
207 platform_handle.struct_size = sizeof(MojoPlatformHandle);
208 platform_handle.type = kPlatformFileHandleType;
209 platform_handle.value = PlatformHandleValueFromPlatformFile(platform_file);
213 MojoWrapPlatformHandle(&platform_handle, nullptr, &mojo_handle);
220 MojoPlatformHandle platform_handle;
221 platform_handle.struct_size = sizeof(MojoPlatformHandle);
223 nullptr, &platform_handle);
227 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_INVALID) {
230 CHECK_EQ(platform_handle.type, kPlatformFileHandleType);
231 *file = PlatformFileFromPlatformHandleValue(platform_handle.value);
243 MojoPlatformHandle platform_handle;
244 platform_handle.struct_size = sizeof(MojoPlatformHandle);
245 platform_handle.type = kPlatformSharedBufferHandleType;
247 platform_handle.value =
250 platform_handle.value =
277 &platform_handle, 1, size, &guid, access_mode, nullptr, &mojo_handle);
407 MojoPlatformHandle platform_handle;
408 platform_handle
409 platform_handle.type = MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT;
410 platform_handle.value = static_cast<uint64_t>(port);
414 MojoWrapPlatformHandle(&platform_handle, nullptr, &mojo_handle);
421 MojoPlatformHandle platform_handle;
422 platform_handle.struct_size = sizeof(MojoPlatformHandle);
424 nullptr, &platform_handle);
428 CHECK(platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT ||
429 platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_INVALID);
430 *port = static_cast<mach_port_t>(platform_handle.value);