class ViewManager

Defined at line 38 of file ../../src/ui/a11y/lib/view/view_manager.h

A manager to manage the information offered by views to accessibility.

Semantic Providers connect to this service to start supplying semantic

information for a particular View while Semantic Consumers query available

semantic information managed by this manager.

Public Methods

void ViewManager (std::unique_ptr<SemanticTreeServiceFactory> factory, std::unique_ptr<ViewSemanticsFactory> view_semantics_factory, std::unique_ptr<ViewInjectorFactoryInterface> view_injector_factory, std::unique_ptr<SemanticsEventManager> semantics_event_manager, std::shared_ptr<AccessibilityViewInterface> a11y_view, sys::ComponentContext * context)

Defined at line 18 of file ../../src/ui/a11y/lib/view/view_manager.cc

void ~ViewManager ()

Defined at line 32 of file ../../src/ui/a11y/lib/view/view_manager.cc

bool GetSemanticsEnabled ()

Defined at line 60 of file ../../src/ui/a11y/lib/view/view_manager.h

SemanticsEventManager * GetSemanticsEventManager ()

Returns a handle to the semantics event manager so that listeners

can register.

Defined at line 64 of file ../../src/ui/a11y/lib/view/view_manager.h

std::shared_ptr<AccessibilityViewInterface> a11y_view ()

Returns a pointer to the a11y view.

Defined at line 124 of file ../../src/ui/a11y/lib/view/view_manager.h

std::shared_ptr<FlatlandAccessibilityView> flatland_a11y_view ()

Defined at line 126 of file ../../src/ui/a11y/lib/view/view_manager.h

void SetViewCoordinateConverter (std::unique_ptr<ViewCoordinateConverter> view_coordinate_converter)

Sets a View Coordinate Converter to be used by this class.

Defined at line 131 of file ../../src/ui/a11y/lib/view/view_manager.h

void SetSemanticsEnabled (bool enabled)

Function to Enable/Disable Semantics Manager.

When Semantics are disabled, all the semantic tree bindings are

closed, which deletes all the semantic tree data.

Defined at line 131 of file ../../src/ui/a11y/lib/view/view_manager.cc

ViewCoordinateConverter * GetViewCoordinateConverterForTest ()

Defined at line 135 of file ../../src/ui/a11y/lib/view/view_manager.h

bool ViewHasSemantics (zx_koid_t view_ref_koid)

|SemanticsSource|

Defined at line 149 of file ../../src/ui/a11y/lib/view/view_manager.cc

const fuchsia::accessibility::semantics::Node * GetSemanticNode (zx_koid_t koid, uint32_t node_id)

|SemanticsSource|

Defined at line 162 of file ../../src/ui/a11y/lib/view/view_manager.cc

const fuchsia::accessibility::semantics::Node * GetNextNode (zx_koid_t koid, uint32_t node_id, a11y::NodeFilter filter)

|SemanticsSource|

Defined at line 185 of file ../../src/ui/a11y/lib/view/view_manager.cc

const fuchsia::accessibility::semantics::Node * GetNextNode (zx_koid_t koid, uint32_t node_id, a11y::NodeFilterWithParent filter)

|SemanticsSource|

Defined at line 197 of file ../../src/ui/a11y/lib/view/view_manager.cc

const fuchsia::accessibility::semantics::Node * GetParentNode (zx_koid_t koid, uint32_t node_id)

|SemanticsSource|

Defined at line 173 of file ../../src/ui/a11y/lib/view/view_manager.cc

const fuchsia::accessibility::semantics::Node * GetPreviousNode (zx_koid_t koid, uint32_t node_id, a11y::NodeFilter filter)

|SemanticsSource|

Defined at line 209 of file ../../src/ui/a11y/lib/view/view_manager.cc

const fuchsia::accessibility::semantics::Node * GetPreviousNode (zx_koid_t koid, uint32_t node_id, a11y::NodeFilterWithParent filter)

|SemanticsSource|

Defined at line 221 of file ../../src/ui/a11y/lib/view/view_manager.cc

bool ViewHasVisibleVirtualkeyboard (zx_koid_t view_ref_koid)

|SemanticsSource|

Defined at line 233 of file ../../src/ui/a11y/lib/view/view_manager.cc

std::optional<zx_koid_t> GetViewWithVisibleVirtualkeyboard ()

|SemanticsSource|

Defined at line 237 of file ../../src/ui/a11y/lib/view/view_manager.cc

void ExecuteHitTesting (zx_koid_t koid, fuchsia::math::PointF local_point, fuchsia::accessibility::semantics::SemanticListener::HitTestCallback callback)

|SemanticsSource|

Defined at line 244 of file ../../src/ui/a11y/lib/view/view_manager.cc

void PerformAccessibilityAction (zx_koid_t koid, uint32_t node_id, fuchsia::accessibility::semantics::Action action, fuchsia::accessibility::semantics::SemanticListener::OnAccessibilityActionRequestedCallback callback)

|SemanticsSource|

Defined at line 257 of file ../../src/ui/a11y/lib/view/view_manager.cc

std::optional<SemanticTransform> GetNodeToRootTransform (zx_koid_t koid, uint32_t node_id)

|SemanticsSource|

Defined at line 273 of file ../../src/ui/a11y/lib/view/view_manager.cc

bool InjectEventIntoView (fuchsia::ui::input::InputEvent & event, zx_koid_t koid)

|InjectorManagerInterface|

Defined at line 285 of file ../../src/ui/a11y/lib/view/view_manager.cc

bool MarkViewReadyForInjection (zx_koid_t koid, bool ready)

|InjectorManagerInterface|

Defined at line 313 of file ../../src/ui/a11y/lib/view/view_manager.cc

fxl::WeakPtr<ViewWrapper> GetViewWrapper (zx_koid_t view_ref_koid)

|ViewSource|

Defined at line 343 of file ../../src/ui/a11y/lib/view/view_manager.cc