0
Files
src/ui
Aaron Leventhal 244d6997f8 [A11yPerformance] Refactor on-demand AXModes and use on more platforms
Remove WinAccessibilityAPIUsageObserver and replace with generic
calls in AXPlatform::Delegate() that can be used on any platform.

Not only is this simpler, removing 50+ lines of code, but future CLs
can use it to reduce AXMode usage on other platforms, especially Mac,
which usually turns on all of the expensive AXModes for most API
consumers.

Finally, this provides a better signal to use for turning off
the auto disable feature (will use more in upcoming CLs for the
Auto Disable Refresh feature). The previous method,
OnAccessibilityApiUsage(), could be triggered by a simple
AXPlatformNodeDelegate::GetRole() call, which occurs naturally during
deserialization (which itself can be delayed long after the
conditions are present that should turn off a11y).

Fixed: 337737555
Change-Id: I389ee6ef3e71810db8c39b3298c4b4f48253b5a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6505214
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Jacques Newman <janewman@microsoft.com>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1455895}
2025-05-05 12:50:56 -07:00
..
2025-04-22 12:24:10 -07:00

This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).