Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::StartEvent Class Reference
Inheritance diagram for dart::StartEvent:
dart::Event

Public Member Functions

 StartEvent (Dart_Isolate isolate, const char *main)
 
virtual void Process ()
 
- Public Member Functions inherited from dart::Event
virtual ~Event ()
 
virtual void Process ()=0
 
Dart_Isolate isolate () const
 

Additional Inherited Members

- Protected Member Functions inherited from dart::Event
 Event (Dart_Isolate isolate)
 

Detailed Description

Definition at line 157 of file custom_isolate_test.cc.

Constructor & Destructor Documentation

◆ StartEvent()

dart::StartEvent::StartEvent ( Dart_Isolate  isolate,
const char *  main 
)
inline

Definition at line 159 of file custom_isolate_test.cc.

160 : Event(isolate), main_(main) {}
Event(Dart_Isolate isolate)
Dart_Isolate isolate() const
Definition: main.py:1

Member Function Documentation

◆ Process()

void dart::StartEvent::Process ( )
virtual

Implements dart::Event.

Definition at line 168 of file custom_isolate_test.cc.

168 {
169 OS::PrintErr(">> StartEvent with isolate(%p)--\n", isolate());
173
175 EXPECT_VALID(lib);
176
177 result = Dart_Invoke(lib, NewString(main_), 0, nullptr);
179 free(const_cast<char*>(main_));
180 main_ = nullptr;
181
185}
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
static const char * url()
Definition: unit_test.cc:185
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
GAsyncResult * result
DART_EXPORT void Dart_EnterScope()
DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate)
DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, Dart_Handle name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT void Dart_ExitIsolate()
Dart_Handle NewString(const char *str)
DART_EXPORT void Dart_ExitScope()
DART_EXPORT void Dart_SetMessageNotifyCallback(Dart_MessageNotifyCallback message_notify_callback)
DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url)
#define EXPECT_VALID(handle)
Definition: unit_test.h:643

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