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_tkoid,fuchsia::accessibility::semantics::SemanticListenerPtrsemantic_listener,CloseChannelCallbackcallback)
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 129 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 116 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 89 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 99 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 134 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc
void CloseChannel (zx_status_t status)
Notifies the owner of the channel to close it and clean up associated state.
Defined at line 83 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc