class SemanticTreeService

Defined at line 26 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.h

Public Methods

void SemanticTreeService (std::unique_ptr< ::a11y::SemanticTree> tree, zx_koid_t koid, fuchsia::accessibility::semantics::SemanticListenerPtr semantic_listener, CloseChannelCallback callback)

Defined at line 26 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

void ~SemanticTreeService ()

Defined at line 49 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

const fxl::WeakPtr< ::a11y::SemanticTree> Get ()

Returns a weak pointer to the Semantic Tree owned by this service. Caller

must always check if the pointer is valid before accessing, as the pointer

may be invalidated. The pointer may become invalidated if the semantic

provider disconnects or if an error occurred. This is not thread safe. This

pointer may only be used in the same thread as this service is running.

Defined at line 123 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

zx_koid_t view_ref_koid ()

Returns the View Ref Koid of the semantics provider connected to this service.

Defined at line 58 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

void EnableSemanticsUpdates (bool enabled)

Calls OnSemanticsModeChanged() to notify semantic provider whether Semantics Manager is enabled

or not.

Also, deletes the semantic tree, when Semantics Manager is disabled.

Defined at line 110 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

void CommitUpdates (CommitUpdatesCallback callback)

|fuchsia::accessibility::semantics::SemanticsTree|

Defined at line 60 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

bool UpdatesEnabled ()

Whether semantic updates are currently enabled.

Defined at line 67 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.h

void UpdateSemanticNodes (std::vector<fuchsia::accessibility::semantics::Node> nodes)

|fuchsia::accessibility::semantics::SemanticsTree|

Defined at line 83 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

void DeleteSemanticNodes (std::vector<uint32_t> node_ids)

|fuchsia::accessibility::semantics::SemanticsTree|

Defined at line 93 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc

void SendSemanticEvent (fuchsia::accessibility::semantics::SemanticEvent semantic_event, SendSemanticEventCallback callback)

|fuchsia::accessibility::semantics::SemanticsTree|

Defined at line 128 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc