Flutter Engine
flutter::SemanticsUpdate Class Reference

#include <semantics_update.h>

Inheritance diagram for flutter::SemanticsUpdate:
flutter::RefCountedDartWrappable< SemanticsUpdate > fml::RefCountedThreadSafe< SemanticsUpdate > tonic::DartWrappable fml::internal::RefCountedThreadSafeBase

Public Member Functions

 ~SemanticsUpdate () override
 
SemanticsNodeUpdates takeNodes ()
 
CustomAccessibilityActionUpdates takeActions ()
 
void dispose ()
 
- Public Member Functions inherited from flutter::RefCountedDartWrappable< SemanticsUpdate >
virtual void RetainDartWrappableReference () const override
 
virtual void ReleaseDartWrappableReference () const override
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< SemanticsUpdate >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 
- Public Member Functions inherited from tonic::DartWrappable
 DartWrappable ()
 
virtual const DartWrapperInfoGetDartWrapperInfo () const =0
 
virtual size_t GetAllocationSize () const
 
Dart_Handle CreateDartWrapper (DartState *dart_state)
 
void AssociateWithDartWrapper (Dart_Handle wrappable)
 
void ClearDartWrapper ()
 
Dart_WeakPersistentHandle dart_wrapper () const
 

Static Public Member Functions

static void create (Dart_Handle semantics_update_handle, SemanticsNodeUpdates nodes, CustomAccessibilityActionUpdates actions)
 
static void RegisterNatives (tonic::DartLibraryNatives *natives)
 

Additional Inherited Members

- Public Types inherited from tonic::DartWrappable
enum  DartNativeFields {
  kPeerIndex,
  kWrapperInfoIndex,
  kNumberOfNativeFields
}
 
- Protected Member Functions inherited from fml::RefCountedThreadSafe< SemanticsUpdate >
 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 
- Protected Member Functions inherited from tonic::DartWrappable
virtual ~DartWrappable ()
 
- Static Protected Member Functions inherited from tonic::DartWrappable
static Dart_PersistentHandle GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info)
 

Detailed Description

Definition at line 18 of file semantics_update.h.

Constructor & Destructor Documentation

◆ ~SemanticsUpdate()

flutter::SemanticsUpdate::~SemanticsUpdate ( )
overridedefault

Referenced by create().

Member Function Documentation

◆ create()

void flutter::SemanticsUpdate::create ( Dart_Handle  semantics_update_handle,
SemanticsNodeUpdates  nodes,
CustomAccessibilityActionUpdates  actions 
)
static

Definition at line 25 of file semantics_update.cc.

References tonic::DartWrappable::AssociateWithDartWrapper(), and ~SemanticsUpdate().

Referenced by flutter::SemanticsUpdateBuilder::build().

27  {
28  auto semantics_update = fml::MakeRefCounted<SemanticsUpdate>(
29  std::move(nodes), std::move(actions));
30  semantics_update->AssociateWithDartWrapper(semantics_update_handle);
31 }

◆ dispose()

void flutter::SemanticsUpdate::dispose ( )

Definition at line 47 of file semantics_update.cc.

References tonic::DartWrappable::ClearDartWrapper().

47  {
49 }

◆ RegisterNatives()

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

◆ takeActions()

CustomAccessibilityActionUpdates flutter::SemanticsUpdate::takeActions ( )

Definition at line 43 of file semantics_update.cc.

Referenced by flutter::RuntimeController::DispatchSemanticsAction().

43  {
44  return std::move(actions_);
45 }

◆ takeNodes()

SemanticsNodeUpdates flutter::SemanticsUpdate::takeNodes ( )

Definition at line 39 of file semantics_update.cc.

Referenced by flutter::RuntimeController::DispatchSemanticsAction().

39  {
40  return std::move(nodes_);
41 }

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