5#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_SDK_EXT_HANDLE_DISPOSITION_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_SDK_EXT_HANDLE_DISPOSITION_H_
8#include <zircon/syscalls.h>
12#include "flutter/fml/memory/ref_counted.h"
14#include "third_party/dart/runtime/include/dart_api.h"
26 DEFINE_WRAPPERTYPEINFO();
38 zx_handle_op_t
operation()
const {
return operation_; }
40 zx_obj_type_t
type()
const {
return type_; }
41 zx_rights_t
rights()
const {
return rights_; }
42 zx_status_t
result()
const {
return result_; }
57 void RetainDartWrappableReference()
const override {
AddRef(); }
59 void ReleaseDartWrappableReference()
const override {
Release(); }
61 const zx_handle_op_t operation_;
63 const zx_obj_type_t type_;
64 const zx_rights_t rights_;
zx_status_t result() const
zx_handle_op_t operation() const
zx_rights_t rights() const
fml::RefPtr< dart::Handle > handle() const
static fml::RefPtr< HandleDisposition > create(zx_handle_op_t operation, fml::RefPtr< dart::Handle > handle, zx_obj_type_t type, zx_rights_t rights)
void set_result(zx_status_t result)
static void RegisterNatives(tonic::DartLibraryNatives *natives)
zx_obj_type_t type() const