Flutter Engine
flutter::DartRuntimeHooks Class Reference

#include <dart_runtime_hooks.h>

Static Public Member Functions

static void Install (bool is_ui_isolate, const std::string &script_uri)
 
static void RegisterNatives (tonic::DartLibraryNatives *natives)
 

Detailed Description

Definition at line 14 of file dart_runtime_hooks.h.

Member Function Documentation

◆ Install()

void flutter::DartRuntimeHooks::Install ( bool  is_ui_isolate,
const std::string &  script_uri 
)
static

Definition at line 159 of file dart_runtime_hooks.cc.

References flutter::InitDartAsync(), flutter::InitDartCore(), flutter::InitDartInternal(), flutter::InitDartIO(), and tonic::ToDart().

Referenced by flutter::DartIsolate::GetMessageHandlingTaskRunner().

160  {
161  Dart_Handle builtin = Dart_LookupLibrary(ToDart("dart:ui"));
162  InitDartInternal(builtin, is_ui_isolate);
163  InitDartCore(builtin, script_uri);
164  InitDartAsync(builtin, is_ui_isolate);
165  InitDartIO(builtin, script_uri);
166 }
static void InitDartIO(Dart_Handle builtin_library, const std::string &script_uri)
static void InitDartInternal(Dart_Handle builtin_library, bool is_ui_isolate)
static void InitDartCore(Dart_Handle builtin, const std::string &script_uri)
Dart_Handle ToDart(const T &object)
static void InitDartAsync(Dart_Handle builtin_library, bool is_ui_isolate)

◆ RegisterNatives()

void flutter::DartRuntimeHooks::RegisterNatives ( tonic::DartLibraryNatives natives)
static

Definition at line 59 of file dart_runtime_hooks.cc.

References flutter::BUILTIN_NATIVE_LIST(), tonic::DartLibraryNatives::Register(), and REGISTER_FUNCTION.

Referenced by flutter::DartUI::InitForGlobal().

59  {
61 }
BUILTIN_NATIVE_LIST(DECLARE_FUNCTION)
void Register(std::initializer_list< Entry > entries)
#define REGISTER_FUNCTION(name, count)

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