#include <dart_state.h>
Classes | |
| class | Scope |
Public Member Functions | |
| DartState (int dirfd=-1, std::function< void(Dart_Handle)> message_epilogue=nullptr) | |
| virtual | ~DartState () |
| std::weak_ptr< DartState > | GetWeakPtr () |
| Dart_Isolate | isolate () |
| void | SetIsolate (Dart_Isolate isolate) |
| Dart_PersistentHandle | private_constructor_name () |
| DartClassLibrary & | class_library () |
| DartMessageHandler & | message_handler () |
| FileLoader & | file_loader () |
| void | MessageEpilogue (Dart_Handle message_result) |
| void | SetReturnCode (uint32_t return_code) |
| void | SetReturnCodeCallback (std::function< void(uint32_t)> callback) |
| bool | has_set_return_code () const |
| void | SetIsShuttingDown () |
| bool | IsShuttingDown () |
| virtual void | DidSetIsolate () |
Static Public Member Functions | |
| static DartState * | From (Dart_Isolate isolate) |
| static DartState * | Current () |
| static Dart_Handle | HandleLibraryTag (Dart_LibraryTag tag, Dart_Handle library, Dart_Handle url) |
Protected Member Functions | |
| Dart_Isolate | isolate () const |
| TONIC_DISALLOW_COPY_AND_ASSIGN (DartState) | |
Definition at line 28 of file dart_state.h.
|
explicit |
Definition at line 22 of file dart_state.cc.
|
virtual |
Definition at line 33 of file dart_state.cc.
|
inline |
Definition at line 60 of file dart_state.h.
Referenced by tonic::DartWrappable::CreateDartWrapper(), and tonic::DartWrappable::GetTypeForWrapper().
|
static |
Definition at line 56 of file dart_state.cc.
Referenced by tonic::DartWrappable::AssociateWithDartWrapper(), flutter::PlatformConfiguration::DidCreateIsolate(), flutter::EncodeImage(), flutter::MultiFrameCodec::getNextFrame(), HandleLibraryTag(), zircon::dart::Initialize(), fuchsia::dart::Initialize(), dart_runner::DartTestComponentController::Run(), tonic::DartMicrotaskQueue::ScheduleMicrotask(), tonic::DartConverter< T *, typename std::enable_if< std::is_convertible< T *, const DartWrappable * >::value >::type >::SetReturnValue(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and tonic::DartConverter< T *, typename std::enable_if< std::is_convertible< T *, const DartWrappable * >::value >::type >::ToDart().
|
virtual |
|
inline |
Definition at line 62 of file dart_state.h.
Referenced by HandleLibraryTag().
|
static |
Definition at line 50 of file dart_state.cc.
References isolate().
| std::weak_ptr< DartState > tonic::DartState::GetWeakPtr | ( | ) |
Definition at line 62 of file dart_state.cc.
Referenced by tonic::DartMessageHandler::OnMessage().
|
static |
Definition at line 79 of file dart_state.cc.
References Current(), file_loader(), and tonic::FileLoader::HandleLibraryTag().
|
inline |
Definition at line 71 of file dart_state.h.
Referenced by tonic::DartMessageHandler::OnHandleMessage().
|
inline |
Definition at line 51 of file dart_state.h.
Referenced by flutter::DartIsolate::CreatePlatformIsolate(), flutter::DartIsolate::CreateRunningRootIsolate(), From(), flutter::DartIsolate::GetIsolateGroupData(), flutter::DartIsolate::GetServiceId(), tonic::DartMessageHandler::OnHandleMessage(), flutter::DartIsolate::PrepareForRunningFromKernel(), flutter::DartIsolate::PrepareForRunningFromPrecompiledCode(), SetIsolate(), flutter::DartIsolate::SetOwnerToCurrentThread(), and flutter::DartIsolate::Shutdown().
|
inlineprotected |
Definition at line 83 of file dart_state.h.
|
inline |
Definition at line 74 of file dart_state.h.
Referenced by flutter::testing::TEST_F().
|
inline |
Definition at line 61 of file dart_state.h.
Referenced by flutter::UIDartState::GetLastError(), and tonic::DartMessageHandler::OnMessage().
|
inline |
Definition at line 64 of file dart_state.h.
Referenced by tonic::DartMessageHandler::OnHandleMessage().
|
inline |
Definition at line 56 of file dart_state.h.
References tonic::DartPersistentValue::Get().
Referenced by tonic::DartWrappable::CreateDartWrapper().
| void tonic::DartState::SetIsolate | ( | Dart_Isolate | isolate | ) |
Definition at line 35 of file dart_state.cc.
References tonic::DartPersistentValue::Clear(), DidSetIsolate(), isolate(), and tonic::DartPersistentValue::Set().
|
inline |
Definition at line 73 of file dart_state.h.
| void tonic::DartState::SetReturnCode | ( | uint32_t | return_code | ) |
Definition at line 66 of file dart_state.cc.
| void tonic::DartState::SetReturnCodeCallback | ( | std::function< void(uint32_t)> | callback | ) |
Definition at line 73 of file dart_state.cc.
References callback.
|
protected |