• Hiroki Sato's avatar
    Clean up ARC++ a11y bounds computation · 3ea46ce5
    Hiroki Sato authored
    This CL cleans up the a11y bounds computations in ARC++;
    - Aggregate the bounds computation logic inside
      AccessibilityInfoDataWrapper.
    - Explicitly use |offset_container_id| of AXRelativeBounds.
    _ Keep the device scale factor in AXTreeSourceArc. Set and update it
      from ArcAccessibilityHelperBridge.
    
    This CL also fixes the bounds computation of notification window and
    input method window, which were currently not adjusted by device
    scaling.
    
    Bug: b:147707554
    Test: manual. Open PlayStore, change device scale factor by Ctrl +/-, bounds are correct.
    Test: manual. Open TalkBack-test app, create notification windows, bounds are correct.
    Change-Id: Ie5f6904fcf8c18fd86d9fc1e99a1db7970a14be9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2066411
    Commit-Queue: 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@{#746603}
    3ea46ce5
geometry_util.h 890 Bytes