class ViewWrapper
Defined at line 25 of file ../../src/ui/a11y/lib/view/view_wrapper.h
A wrapper for the accessibility manager's objects associated with a particular scenic view. When
the associated viewRef becomes invalid this object should be destroyed. The owner of this object
is responsible for watching signals on the associated viewRef and destroying this object when the
viewRef goes out of scope.
Public Methods
void ViewWrapper (fuchsia::ui::views::ViewRef view_ref, std::unique_ptr<ViewSemantics> view_semantics)
Creates a Wrapper for this view and binds the associated semantic tree.
Defined at line 16 of file ../../src/ui/a11y/lib/view/view_wrapper.cc
void ~ViewWrapper ()
Defined at line 22 of file ../../src/ui/a11y/lib/view/view_wrapper.cc
fuchsia::ui::views::ViewRef ViewRefClone ()
Returns a clone of the ViewRef owned by this object.
Defined at line 24 of file ../../src/ui/a11y/lib/view/view_wrapper.cc
std::shared_ptr<input::Injector> take_view_injector ()
Takes the injector (if any), owned by this class and resets the object owned by this class to
nullptr.
Defined at line 26 of file ../../src/ui/a11y/lib/view/view_wrapper.cc
fxl::WeakPtr<ViewWrapper> GetWeakPtr ()
Returns a weak pointer to `this`.
Defined at line 33 of file ../../src/ui/a11y/lib/view/view_wrapper.h
ViewSemantics * view_semantics ()
Defined at line 38 of file ../../src/ui/a11y/lib/view/view_wrapper.h
input::Injector * view_injector ()
Returns the injector for the view associated with this class. If no injector was registered,
turns nullptr.
Defined at line 42 of file ../../src/ui/a11y/lib/view/view_wrapper.h
void set_view_injector (std::shared_ptr<input::Injector> view_injector)
Defined at line 44 of file ../../src/ui/a11y/lib/view/view_wrapper.h