ChromeVox Tutorial: Don't open automatically if in tablet mode.

This change avoids automatically opening the tutorial in OOBE if the
device is in tablet mode. We want to avoid showing the tutorial in this
case because none of the content is relevant to ChromeVox touch.

To implement this behavior, this change adds an accessibility private
API to fetch the tablet mode enabled state of the device, which is
used when deciding whether to show the tutorial or not.

Once we create a tutorial for ChromeVox touch, we can remove this
behavior and choose which tutorial to show depending on the user's
device tablet mode.

and tablet mode. Verify that tutorial only opens in laptop mode.

Test: Manually test change on Eve. Start ChromeVox in OOBE in laptop
Fixed: 1132081
AX-Relnotes: N/A
Change-Id: I30d237ba0d30f41fcda3420fe8832c70fdfb886d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2472598
Commit-Queue: Akihiro Ota <akihiroota@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818112}
GitOrigin-RevId: e63cc201c2166aa2202628b72a8a86e502fb8d25
1 file changed