• Hiroki Sato's avatar
    arc-a11y: Change event type to prevent duplicated event dispatch · 6dd1f570
    Hiroki Sato authored
    CL:2424854 changed automation event generation and as a result some ARC
    events are dispatched duplicately. Specially, value range change events
    are dispatched twice, and tast test started to fail.
    
    This change fixes it by changing the event type that ARC dispatches from
    value changed event to aria attribute changed so that we can delegate
    AXEventGenerator to generate this type of event.
    
    AX-Relnotes: n/a
    Bug: b:169201305
    Test: tast arc.AccessiblityEvent
    Test: unit_test AXTreeSourceArcTest,ArcAccessibilityUtilTest
    Change-Id: Ie635619c13d605b0bf9ec3633f9ac5eb0109f89e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462883
    Commit-Queue: Hiroki Sato <hirokisato@chromium.org>
    Auto-Submit: Hiroki Sato <hirokisato@chromium.org>
    Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
    Reviewed-by: default avatarSara Kato <sarakato@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#816388}
    6dd1f570
arc_accessibility_util.cc 7.11 KB