class AccessibilityViewInterface
Defined at line 21 of file ../../src/ui/a11y/lib/view/accessibility_view.h
Interface for managing an accessibility view.
This view is used to vend capabilities to the accessibility manager
that a view confers, e.g. ability to request focus, consume and
respond to input events, annotate underlying views, and apply
coordinate transforms to its subtree.
Public Methods
void AccessibilityViewInterface ()
Defined at line 28 of file ../../src/ui/a11y/lib/view/accessibility_view.h
void add_view_properties_changed_callback (ViewPropertiesChangedCallback callback)
Adds a callback to be invoked when the view properties for the a11y view change. When
registering this callback, if view properties are available this callback also gets invoked. If
the callback returns false when invoked, it no longer will receive future updates.
void add_scene_ready_callback (SceneReadyCallback callback)
Adds a callback to be invoked when the scene is ready. If the callback returns false when
invoked, it no longer will receive future updates.
std::optional<fuchsia::ui::views::ViewRef> view_ref ()
Returns the view ref of the a11y view if the a11y view is ready.
If the a11y view is not yet ready, this method returns std::nullopt.
void RequestFocus (fuchsia::ui::views::ViewRef view_ref, RequestFocusCallback callback)
Attempts to transfer focus to the view corresponding to |view_ref|.
fuchsia::ui::pointer::augment::TouchSourceWithLocalHitPtr TakeTouchSource ()
Takes ownership of the TouchSource owned by this accessibility view, used to listen for pointer
events.
void SetTouchSource (fuchsia::ui::pointer::augment::TouchSourceWithLocalHitPtr touch_source)
Sets a new TouchSource to this accessibility view.
void ~AccessibilityViewInterface ()
Defined at line 29 of file ../../src/ui/a11y/lib/view/accessibility_view.h