23 dart_wrapper_.
Clear();
37 wrapper,
kPeerIndex,
reinterpret_cast<intptr_t
>(
this));
41 dart_wrapper_.
Set(dart_state, wrapper,
this,
sizeof(*
this),
42 &FinalizeDartWrapper);
51 dart_wrapper_.
Clear();
57 wrapper,
kPeerIndex,
reinterpret_cast<intptr_t
>(
this))));
62 dart_wrapper_.
Set(dart_state, wrapper,
this,
sizeof(*
this),
63 &FinalizeDartWrapper);
71 dart_wrapper_.
Clear();
75void DartWrappable::FinalizeDartWrapper(
void* isolate_callback_data,
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Dart_PersistentHandle GetClass(const DartWrapperInfo &info)
static DartState * Current()
Dart_PersistentHandle private_constructor_name()
DartClassLibrary & class_library()
void Set(DartState *dart_state, Dart_Handle object, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
Dart_Handle CreateDartWrapper(DartState *dart_state)
virtual const DartWrapperInfo & GetDartWrapperInfo() const =0
void AssociateWithDartWrapper(Dart_Handle wrappable)
virtual void ReleaseDartWrappableReference() const =0
virtual void RetainDartWrappableReference() const =0
static Dart_PersistentHandle GetTypeForWrapper(tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_Handle Dart_GetNativeInstanceField(Dart_Handle obj, int index, intptr_t *value)
struct _Dart_NativeArguments * Dart_NativeArguments
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_New(Dart_Handle type, Dart_Handle constructor_name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT Dart_Handle Dart_SetNativeInstanceField(Dart_Handle obj, int index, intptr_t value)
Dart_Handle Dart_PersistentHandle
DART_EXPORT bool Dart_IsNull(Dart_Handle object)
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)
DART_EXPORT Dart_Handle Dart_GetNativeFieldsOfArgument(Dart_NativeArguments args, int arg_index, int num_fields, intptr_t *field_values)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
const char kInvalidArgument[]
bool CheckAndHandleError(Dart_Handle handle)
static DartWrappable * FromArguments(Dart_NativeArguments args, int index, Dart_Handle &exception)
static DartWrappable * FromDart(Dart_Handle handle)
#define TONIC_CHECK(condition)