Various cleanups and improvements to Arc++ accessibility
- use base::Optional in all internal AXTreeSourceArc node id usages. This makes it clear where we are setting values and not, forcing the author to think about the id. This also catches various places where optional ids were hard-coded. This change is independent of the broader switch to use kInvalidAXNodeId as an invalid id (which still works), but is not a concern in code internal to AXTreeSourceArc. - refactor common code from AccessibilityWindowInfoDataWrapper and AccessibilityNodeInfoDataWrapper into base class. I've also renamed it to AccessibilityInfoDataWrapper to align naming. - align the ordering of function declarations (in .h) with their order in .cc. Also, declare non-overiddenn methods first in each visibility block in .h. - remove some obsolete forward declares and functions (e.g. Focus()). Unsure why compiler did not catch this. - it is fine to have some AXTreeSource methods as public and some as private, remove TODO and group methods together. Bug: none Test: unit_tests --gtest_filter=AXTreeSourceArc*.* Change-Id: I39f2ae67a213df450327bc70ef540c0aa6f0510e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1860524 Commit-Queue: David Tseng <dtseng@chromium.org> Reviewed-by:Sara Kato <sarakato@chromium.org> Cr-Commit-Position: refs/heads/master@{#707481}
Showing
This diff is collapsed.
Please register or sign in to comment