Move accessibility component extensions into shared accessibility/ directory
As part of a transition to share code and tooling more easily between
ChromeVox, Switch Access, Select-to-Speak, autoclick, and any future
accessibility component extensions, move them into a shared
accessibility/ directory in chrome/browser/resources/chromeos.
Bug: 706981
Change-Id: Icaec4981380ac37e42d12706c2ec5693f58c334c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913122
Commit-Queue: Anastasia Helfinstein <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: David Tseng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#717744}
diff --git a/docs/accessibility/autoclick.md b/docs/accessibility/autoclick.md
index 28de750..298d5b3b 100644
--- a/docs/accessibility/autoclick.md
+++ b/docs/accessibility/autoclick.md
@@ -46,7 +46,7 @@
ash/system/accessibility/autoclick*
- A component extension to provide Accessibility tree information, in
-chrome/browser/resources/chromeos/autoclick/
+chrome/browser/resources/chromeos/accessibility/autoclick/
In addition, there are settings for automatic clicks in
chrome/browser/resources/settings/a11y_page/manage_a11y_page.*
diff --git a/docs/accessibility/chromevox.md b/docs/accessibility/chromevox.md
index c45edd5..05f6928 100644
--- a/docs/accessibility/chromevox.md
+++ b/docs/accessibility/chromevox.md
@@ -13,7 +13,7 @@
## Developer Info
-Code location: ```chrome/browser/resources/chromeos/chromevox```
+Code location: ```chrome/browser/resources/chromeos/accessibility/chromevox```
Ninja target: it's built as part of "chrome", but you can build and run
browser_tests to test it (Chrome OS target only - you must have target_os =
@@ -36,10 +36,12 @@
When developing a new feature, it may be helpful to save time by not having to
go through a compile cycle. This can be achieved by setting
```chromevox_compress_js``` to 0 in
-chrome/browser/resources/chromeos/chromevox/BUILD.gn, or by using a debug build.
+chrome/browser/resources/chromeos/accessibility/chromevox/BUILD.gn, or by using
+a debug build.
In a debug build or with chromevox_compress_js off, the unflattened files in the
-Chrome out directory (e.g. out/Release/resources/chromeos/chromevox/). Now you
+Chrome out directory
+(e.g. out/Release/resources/chromeos/accessibility/chromevox/). Now you
can hack directly on the copy of ChromeVox in out/ and toggle ChromeVox to pick
up your changes (via Ctrl+Alt+Z).
diff --git a/docs/accessibility/select_to_speak.md b/docs/accessibility/select_to_speak.md
index da1b1b6..ac1f3a5 100644
--- a/docs/accessibility/select_to_speak.md
+++ b/docs/accessibility/select_to_speak.md
@@ -43,7 +43,7 @@
STS code lives mainly in three places:
- A component extension to do the bulk of the logic and processing,
-chrome/browser/resources/chromeos/select_to_speak/
+chrome/browser/resources/chromeos/accessibility/select_to_speak/
- An event handler, ash/events/select_to_speak_event_handler.h
@@ -102,7 +102,7 @@
### Select to Speak extension structure
Most STS logic takes place in
-[select_to_speak.js](https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/select_to_speak/select_to_speak.js).
+[select_to_speak.js](https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/accessibility/select_to_speak/select_to_speak.js).
#### User input
@@ -193,7 +193,7 @@
- Any time a Google Drive document is loaded (such as a Doc, Sheet or Slides
document), the script
-[select_to_speak_gdocs_script](https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/select_to_speak/select_to_speak_gdocs_script.js?q=select_to_speak_gdocs_script.js+file:%5Esrc/chrome/browser/resources/chromeos/select_to_speak/+package:%5Echromium$&dr)
+[select_to_speak_gdocs_script](https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/accessibility/select_to_speak/select_to_speak_gdocs_script.js?q=select_to_speak_gdocs_script.js+file:%5Esrc/chrome/browser/resources/chromeos/accessibility/select_to_speak/+package:%5Echromium$&dr)
must be executed to remove aria-hidden from the content container.
- Using search+s to read highlighted text uses the clipboard to get text data