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 27 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc
void ~SemanticTreeService ()
Defined at line 50 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 124 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 59 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 111 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc
void CommitUpdates (CommitUpdatesCallback callback)
|fuchsia::accessibility::semantics::SemanticsTree|
Defined at line 61 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 84 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 94 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 129 of file ../../src/ui/a11y/lib/semantics/semantic_tree_service.cc