Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
zircon::dart::HandleDisposition Class Reference

#include <handle_disposition.h>

Inheritance diagram for zircon::dart::HandleDisposition:
fml::RefCountedThreadSafe< HandleDisposition > tonic::DartWrappable fml::internal::RefCountedThreadSafeBase

Public Member Functions

zx_handle_op_t operation () const
 
fml::RefPtr< dart::Handlehandle () const
 
zx_obj_type_t type () const
 
zx_rights_t rights () const
 
zx_status_t result () const
 
void set_result (zx_status_t result)
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< HandleDisposition >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 
- Public Member Functions inherited from tonic::DartWrappable
 DartWrappable ()
 
virtual const DartWrapperInfoGetDartWrapperInfo () const =0
 
virtual void RetainDartWrappableReference () const =0
 
virtual void ReleaseDartWrappableReference () const =0
 
Dart_Handle CreateDartWrapper (DartState *dart_state)
 
void AssociateWithDartWrapper (Dart_Handle wrappable)
 
void ClearDartWrapper ()
 
Dart_WeakPersistentHandle dart_wrapper () const
 

Static Public Member Functions

static void RegisterNatives (tonic::DartLibraryNatives *natives)
 
static fml::RefPtr< HandleDispositioncreate (zx_handle_op_t operation, fml::RefPtr< dart::Handle > handle, zx_obj_type_t type, zx_rights_t rights)
 

Additional Inherited Members

- Public Types inherited from tonic::DartWrappable
enum  DartNativeFields { kPeerIndex , kNumberOfNativeFields }
 
- Protected Member Functions inherited from fml::RefCountedThreadSafe< HandleDisposition >
 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 
- Protected Member Functions inherited from tonic::DartWrappable
virtual ~DartWrappable ()
 
- Static Protected Member Functions inherited from tonic::DartWrappable
static Dart_PersistentHandle GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info)
 

Detailed Description

HandleDisposition is the native peer of a Dart object (HandleDisposition in dart:zircon) that holds a Handle and additional properties.

Definition at line 24 of file handle_disposition.h.

Member Function Documentation

◆ create()

fml::RefPtr< HandleDisposition > zircon::dart::HandleDisposition::create ( zx_handle_op_t  operation,
fml::RefPtr< dart::Handle handle,
zx_obj_type_t  type,
zx_rights_t  rights 
)
static

Definition at line 23 of file handle_disposition.cc.

27 {
28 return fml::MakeRefCounted<HandleDisposition>(operation, handle, type, rights,
29 ZX_OK);
30}
zx_handle_op_t operation() const
fml::RefPtr< dart::Handle > handle() const

◆ handle()

fml::RefPtr< dart::Handle > zircon::dart::HandleDisposition::handle ( ) const
inline

Definition at line 39 of file handle_disposition.h.

39{ return handle_; }

◆ operation()

zx_handle_op_t zircon::dart::HandleDisposition::operation ( ) const
inline

Definition at line 38 of file handle_disposition.h.

38{ return operation_; }

◆ RegisterNatives()

void zircon::dart::HandleDisposition::RegisterNatives ( tonic::DartLibraryNatives natives)
static

Definition at line 52 of file handle_disposition.cc.

52 {
53 natives->Register({{"HandleDisposition_constructor",
57}
void Register(std::initializer_list< Entry > entries)
#define DART_REGISTER_NATIVE(CLASS, METHOD)
#define FOR_EACH_STATIC_BINDING(V)
#define FOR_EACH_BINDING(V)
#define DART_REGISTER_NATIVE_STATIC_(CLASS, METHOD)
void HandleDisposition_constructor(Dart_NativeArguments args)

◆ result()

zx_status_t zircon::dart::HandleDisposition::result ( ) const
inline

Definition at line 42 of file handle_disposition.h.

42{ return result_; }

◆ rights()

zx_rights_t zircon::dart::HandleDisposition::rights ( ) const
inline

Definition at line 41 of file handle_disposition.h.

41{ return rights_; }

◆ set_result()

void zircon::dart::HandleDisposition::set_result ( zx_status_t  result)
inline

Definition at line 43 of file handle_disposition.h.

43{ result_ = result; }

◆ type()

zx_obj_type_t zircon::dart::HandleDisposition::type ( ) const
inline

Definition at line 40 of file handle_disposition.h.

40{ return type_; }

The documentation for this class was generated from the following files: