Flutter Engine
 
Loading...
Searching...
No Matches
zircon::dart Namespace Reference

Classes

class  Handle
 
class  HandleDisposition
 
class  HandleWaiter
 
struct  SizedRegion
 
class  System
 

Functions

 IMPLEMENT_WRAPPERTYPEINFO (zircon, Handle)
 
 IMPLEMENT_WRAPPERTYPEINFO (zircon, HandleDisposition)
 
void HandleDisposition_constructor (Dart_NativeArguments args)
 
 IMPLEMENT_WRAPPERTYPEINFO (zircon, HandleWaiter)
 
void Initialize ()
 
 IMPLEMENT_WRAPPERTYPEINFO (zircon, System)
 

Function Documentation

◆ HandleDisposition_constructor()

void zircon::dart::HandleDisposition_constructor ( Dart_NativeArguments  args)

Definition at line 19 of file handle_disposition.cc.

19 {
20 DartCallConstructor(&HandleDisposition::create, args);
21}
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

References args, and zircon::dart::HandleDisposition::create().

Referenced by zircon::dart::HandleDisposition::RegisterNatives().

◆ IMPLEMENT_WRAPPERTYPEINFO() [1/4]

zircon::dart::IMPLEMENT_WRAPPERTYPEINFO ( zircon  ,
Handle   
)

◆ IMPLEMENT_WRAPPERTYPEINFO() [2/4]

zircon::dart::IMPLEMENT_WRAPPERTYPEINFO ( zircon  ,
HandleDisposition   
)

◆ IMPLEMENT_WRAPPERTYPEINFO() [3/4]

zircon::dart::IMPLEMENT_WRAPPERTYPEINFO ( zircon  ,
HandleWaiter   
)

◆ IMPLEMENT_WRAPPERTYPEINFO() [4/4]

zircon::dart::IMPLEMENT_WRAPPERTYPEINFO ( zircon  ,
System   
)

◆ Initialize()

void zircon::dart::Initialize ( )

Definition at line 68 of file natives.cc.

68 {
69 Dart_Handle library = Dart_LookupLibrary(ToDart("dart:zircon"));
71 Dart_Handle result = Dart_SetNativeResolver(
72 library, zircon::dart::NativeLookup, zircon::dart::NativeSymbol);
74
75 auto dart_state = tonic::DartState::Current();
76 std::unique_ptr<tonic::DartClassProvider> zircon_class_provider(
77 new tonic::DartClassProvider(dart_state, "dart:zircon"));
78 dart_state->class_library().add_provider("zircon",
79 std::move(zircon_class_provider));
80}
static DartState * Current()
Definition dart_state.cc:56
#define FML_CHECK(condition)
Definition logging.h:104
bool CheckAndHandleError(Dart_Handle handle)
Definition dart_error.cc:33

References tonic::CheckAndHandleError(), tonic::DartState::Current(), and FML_CHECK.

Referenced by fuchsia::dart::Initialize().