#include <dart_persistent_value.h>
Public Member Functions | |
| DartPersistentValue () | |
| DartPersistentValue (DartPersistentValue &&other) | |
| DartPersistentValue (DartState *dart_state, Dart_Handle value) | |
| ~DartPersistentValue () | |
| Dart_PersistentHandle | value () const |
| bool | is_empty () const |
| void | Set (DartState *dart_state, Dart_Handle value) |
| void | Clear () |
| Dart_Handle | Get () |
| Dart_Handle | Release () |
| const std::weak_ptr< DartState > & | dart_state () const |
Definition at line 20 of file dart_persistent_value.h.
| tonic::DartPersistentValue::DartPersistentValue | ( | ) |
Definition at line 12 of file dart_persistent_value.cc.
| tonic::DartPersistentValue::DartPersistentValue | ( | DartPersistentValue && | other | ) |
Definition at line 14 of file dart_persistent_value.cc.
| tonic::DartPersistentValue::DartPersistentValue | ( | DartState * | dart_state, |
| Dart_Handle | value | ||
| ) |
Definition at line 20 of file dart_persistent_value.cc.
References dart_state(), Set(), and value().
| tonic::DartPersistentValue::~DartPersistentValue | ( | ) |
| void tonic::DartPersistentValue::Clear | ( | ) |
TODO(80155): Remove the handle even if the isolate is shutting down. This may cause memory to stick around until the isolate group is destroyed. Without this branch, if DartState::IsShuttingDown == true, this code will crash when binding the isolate.
Definition at line 36 of file dart_persistent_value.cc.
References dart_state().
Referenced by Release(), tonic::DartState::SetIsolate(), flutter::testing::TEST_F(), and ~DartPersistentValue().
|
inline |
Definition at line 35 of file dart_persistent_value.h.
Referenced by flutter::PlatformConfiguration::AddView(), flutter::PlatformConfiguration::BeginFrame(), Clear(), DartPersistentValue(), flutter::PlatformConfiguration::DispatchPlatformMessage(), flutter::PlatformConfiguration::DispatchPointerDataPacket(), flutter::PlatformConfiguration::DispatchSemanticsAction(), flutter::PlatformConfiguration::RemoveView(), flutter::PlatformConfiguration::ReportTimings(), flutter::PlatformConfiguration::SendFocusEvent(), Set(), flutter::PlatformConfiguration::SetEngineId(), flutter::PlatformConfiguration::UpdateAccessibilityFeatures(), flutter::PlatformConfiguration::UpdateDisplays(), flutter::PlatformConfiguration::UpdateInitialLifecycleState(), flutter::PlatformConfiguration::UpdateLocales(), flutter::PlatformConfiguration::UpdateSemanticsEnabled(), flutter::PlatformConfiguration::UpdateUserSettingsData(), and flutter::PlatformConfiguration::UpdateViewMetrics().
| Dart_Handle tonic::DartPersistentValue::Get | ( | ) |
Definition at line 66 of file dart_persistent_value.cc.
Referenced by flutter::PlatformConfiguration::AddView(), flutter::PlatformConfiguration::BeginFrame(), flutter::PlatformConfiguration::DispatchPlatformMessage(), flutter::PlatformConfiguration::DispatchPointerDataPacket(), flutter::PlatformConfiguration::DispatchSemanticsAction(), flutter::PlatformConfiguration::on_error(), tonic::DartState::private_constructor_name(), Release(), flutter::PlatformConfiguration::RemoveView(), flutter::PlatformConfiguration::ReportTimings(), flutter::PlatformConfiguration::SendFocusEvent(), flutter::PlatformConfiguration::SetEngineId(), flutter::PlatformConfiguration::UpdateAccessibilityFeatures(), flutter::PlatformConfiguration::UpdateDisplays(), flutter::PlatformConfiguration::UpdateInitialLifecycleState(), flutter::PlatformConfiguration::UpdateLocales(), flutter::PlatformConfiguration::UpdateSemanticsEnabled(), flutter::PlatformConfiguration::UpdateUserSettingsData(), and flutter::PlatformConfiguration::UpdateViewMetrics().
|
inline |
Definition at line 28 of file dart_persistent_value.h.
Referenced by Set(), and flutter::PlatformMessageResponseDart::~PlatformMessageResponseDart().
| Dart_Handle tonic::DartPersistentValue::Release | ( | ) |
Definition at line 72 of file dart_persistent_value.cc.
| void tonic::DartPersistentValue::Set | ( | DartState * | dart_state, |
| Dart_Handle | value | ||
| ) |
Definition at line 30 of file dart_persistent_value.cc.
References dart_state(), is_empty(), TONIC_DCHECK, and value().
Referenced by tonic::DartClassProvider::DartClassProvider(), DartPersistentValue(), flutter::PlatformConfiguration::DidCreateIsolate(), tonic::DartState::SetIsolate(), and flutter::testing::TEST_F().
|
inline |
Definition at line 27 of file dart_persistent_value.h.
Referenced by DartPersistentValue(), tonic::DartClassProvider::GetClassByName(), and Set().