forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unneeded accessibility methods in Android
This CL removes some methods that are not serving a purpose in the code base, and will not in the future. These are methods that always returned false, and so code paths can be simplified. The methods are not necessary, as the WebContentsAccessibilityImpl class supports all actions, and will perform all actions as long as it is not null. They are likely an artifact of past impls / history. The Android FW calls performAccessibilityAction on a View when the AccessibilityNodeProvider (ANP) for that view is null. Chrome's ANP is WebContentsAccessibilityImpl. In some cases, classes are overriding performAccessibilityAction to have it call WCAI's performAction (which always returns false), unless the node provider from WCAI is null. If the framework called performAccessibilityAction, it is because WCAI returned null in the first place, so the action would not be passed to WCAI and the super method invoked instead. AX-Relnotes: N/A Bug: 1362100 Change-Id: I8e176282246ca02eeaf8c78d91405ecae7ac0119 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4204909 Commit-Queue: Mark Schillaci <mschillaci@google.com> Reviewed-by: Ted Choc <tedchoc@chromium.org> Reviewed-by: Bo Liu <boliu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1098884}
- Loading branch information
1 parent
14a9ce8
commit 25fb150
Showing
6 changed files
with
2 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters