Namespaces

Enumerations

enum SemanticsEventType
Name Value
kUnknown 0
kSemanticTreeUpdated 1

Describes the type of a semantics event.

This event is internal to accessibility services, and not yet part of the FIDL. The long term

goal is to have all of them migrated to the FIDL.

Defined at line 18 of file ../../src/ui/a11y/lib/semantics/semantics_event.h

Records

Functions

  • fuchsia::ui::input::PointerEvent ToPointerEvent (const fuchsia::ui::input::accessibility::PointerEvent & a11y_event)

    Converts an Accessibility pointer event to a regular pointer event.

    Defined at line 9 of file ../../src/ui/a11y/lib/gesture_manager/util.cc

  • zx_koid_t GetKoid (const fuchsia::ui::views::ViewRef & view_ref)

    Utility function to extract Koid from a View Ref.

    Defined at line 11 of file ../../src/ui/a11y/lib/util/util.cc

  • bool NodeIsDescribable (const fuchsia::accessibility::semantics::Node * node)

    Defined at line 63 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • zx_koid_t GetHandleKoid (const zx_handle_t & handle)

    Utility function to extract koid from objects zx_handle_t.

    Defined at line 15 of file ../../src/ui/a11y/lib/util/util.cc

  • bool IsContainer (const fuchsia::accessibility::semantics::Node * node)

    Defined at line 58 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • std::string FormatFloat (float input)

    Converts floating point to a string and strips trailing zeros.

    Defined at line 106 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • fuchsia::ui::views::ViewRef Clone (const fuchsia::ui::views::ViewRef & view_ref)

    Utility function to Clone a ViewRef.

    Defined at line 17 of file ../../src/ui/a11y/lib/util/util.cc

  • std::array<float, 9> Multiply3x3MatrixRowMajor (std::array<float, 9> left, std::array<float, 9> right)

    Multiply two 3x3 Matrix represented in Row Major form.

    Defined at line 23 of file ../../src/ui/a11y/lib/util/util.cc

  • glm::vec2 ToVec2 (::fuchsia::math::PointF point)

    Converts a PointF to a vec2.

    Defined at line 21 of file ../../src/ui/a11y/lib/magnifier/magnifier_util.cc

  • bool SameInformationAsParent (const fuchsia::accessibility::semantics::Node * node, const fuchsia::accessibility::semantics::Node * parent_node)

    Returns true if the given node's parent 'contains all the same information'.

    That is, returns true iff `parent_node`

    - is not null,

    - has a label, and

    - has the same label as `node`, and

    - is describable (in particular, it's not a container), and

    - has no other children, and

    - has a set of actions that is a superset of `node`'s.

    Defined at line 135 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • std::vector<const fuchsia::accessibility::semantics::Node *> GetContainerNodes (zx_koid_t koid, uint32_t node_id, SemanticsSource * semantics_source)

    Returns a list of all container IDs that are ancestors of the given node,

    sorted 'deepest-last'. Will not include the node itself.

    Defined at line 88 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • bool NodeIsSlider (const fuchsia::accessibility::semantics::Node * node)

    Returns true if the node represents a slider.

    Defined at line 171 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • std::string GetSliderValue (const fuchsia::accessibility::semantics::Node & node)

    Get the string representation of a slider's value. Some sliders use the

    range_value field to store a float value, while others use the value field

    to store a string representation. We prefer range_value, but if it's not

    present, we fall back to value.

    Defined at line 181 of file ../../src/ui/a11y/lib/screen_reader/util/util.cc

  • bool InitializeStartingGestureContext (const fuchsia::ui::input::accessibility::PointerEvent & pointer_event, GestureContext * gesture_context)

    Initializes a GestureContext given the first event.

    Returns false if required fields are missing, and true otherwise.

    Defined at line 60 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • Delta GetDelta (const a11y::gesture_util_v2::GestureContext & current, const a11y::gesture_util_v2::GestureContext & previous, float scale_min_finger_radius)

    Returns the Delta for two GestureContexts.

    * This method expects that |current| and |previous| have the same set of

    pointers. If not, it will return the "NOOP" Delta with a translation of (0,

    0) and a scale of 1.

    * This method checks if the |previous| distance between each finger and the

    centroid is less than or equal to |scale_min_finger_distance|. If so, the

    returned delta will have scale of 1.0.

    This enables callers to filter out accidental scale adjustments that might

    happen when the user moves fingers while intending to pan. (With a small

    distance between fingers, even a small absolute change in the distance can

    cause a large scale adjustment, since the scale is multiplied by

    |new_distance/old_distance|.)

    Defined at line 23 of file ../../src/ui/a11y/lib/magnifier/magnifier_util.cc

  • bool UpdateGestureContext (const fuchsia::ui::input::accessibility::PointerEvent & pointer_event, bool pointer_on_screen, GestureContext * gesture_context)

    Updates the location of a pointer given its most recent event.

    Returns false if required fields are missing or do not match starting info,

    and returns true otherwise.

    Defined at line 93 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • uint32_t NumberOfFingersOnScreen (const GestureContext & gesture_context)

    Returns number of pointers currently in contact with screen.

    Defined at line 122 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • bool FingerIsOnScreen (const GestureContext & gesture_context, uint32_t pointer_id)

    Returns true if finger is in contact with screen and false otherwise.

    Defined at line 133 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • void ResetGestureContext (GestureContext * gesture_context)

    Resets GestureContext fields to default values.

    Defined at line 141 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • bool ValidatePointerEvent (const GestureContext & gesture_context, const fuchsia::ui::input::accessibility::PointerEvent & pointer_event)

    Helper function to check if essential fields(like event time, device id, pointer id and ndc

    point) are present in the pointer event for the current gesture. It also makes sure that device

    id and pointer id has not changed for the gesture.

    Defined at line 147 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • bool PointerEventIsValidTap (const GestureContext & gesture_start_context, const fuchsia::ui::input::accessibility::PointerEvent & pointer_event)

    Helper function to check if the provided pointer event is valid for current tap gesture being

    performed, by verifying the move threshold.

    Defined at line 159 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • float SquareDistanceBetweenPoints (::fuchsia::math::PointF a, ::fuchsia::math::PointF b)

    Returns the square of the distance between points a and b.

    Defined at line 172 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util/util.cc

  • std::string vec2ToString (const fuchsia::ui::gfx::vec2 vec)

    Defined at line 607 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string vec3ToString (const fuchsia::ui::gfx::vec3 vec)

    Defined at line 611 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string mat4ToString (const fuchsia::ui::gfx::mat4 mat)

    Defined at line 615 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string locationToString (const fuchsia::ui::gfx::BoundingBox location)

    Defined at line 625 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string roleToString (const fuchsia::accessibility::semantics::Role role)

    Defined at line 630 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string actionToString (const fuchsia::accessibility::semantics::Action action)

    Defined at line 663 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string actionsToString (const std::vector<fuchsia::accessibility::semantics::Action> & actions)

    Defined at line 684 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string checkedStateToString (const fuchsia::accessibility::semantics::CheckedState & checked_state)

    Defined at line 692 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string enabledStateToString (const fuchsia::accessibility::semantics::EnabledState & enabled_state)

    Defined at line 708 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

  • std::string toggledStateToString (const fuchsia::accessibility::semantics::ToggledState & toggled_state)

    Defined at line 722 of file ../../src/ui/a11y/lib/semantics/semantic_tree.cc

Variables

const zx::duration kMaxTapDuration

Defined at line 13 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/timing_constants.h

const zx::duration kMaxTimeBetweenTaps

Defined at line 16 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/timing_constants.h

const zx::duration kMaxSecondFingerDownDelay

Defined at line 20 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/timing_constants.h

const zx::duration kMaxSwipeDuration

Defined at line 25 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/timing_constants.h

const zx::duration kMinDragDuration

Defined at line 30 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/timing_constants.h