Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)

Created:
4 years ago by dmazzoni
Modified:
4 years ago
Reviewers:
Tom Sepez, jam, aboxhall
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, nasko+codewatch_chromium.org, jam, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add more fine-grained accessibility modes. This is just a refactoring change, there should be no change in behavior yet. Currently Chrome accessibility support is basically off of on. This change adds some additional accessibility mode flags so we will be able to selectively enable just part of accessibility support. See the linked bug for more details. The idea of casting the accessibility mode bitmask to an enum of all possible valid accessibility modes doesn't really make sense anymore as the number of possible valid permutations is now large, so I'm eliminating AccessibilityModeHelper and making AccessibilityMode into just an integer type rather than an enum. Following changes will implement support for these new modes and enable tracking and manually toggling their usage. BUG=672205 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/dd3d51a7c8fb4e09d3c3bc0057408a5e1f43899a Cr-Commit-Position: refs/heads/master@{#438547}

Patch Set 1 #

Patch Set 2 : Rename constants #

Total comments: 4

Patch Set 3 : Address feedback #

Total comments: 2

Patch Set 4 : Reformat enums as uppercase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -312 lines) Patch
M chrome/browser/extensions/api/automation/automation_apitest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/accessibility/accessibility_action_browsertest.cc View 1 2 3 12 chunks +12 lines, -12 lines 0 comments Download
M content/browser/accessibility/accessibility_ipc_error_browsertest.cc View 1 2 3 5 chunks +8 lines, -7 lines 0 comments Download
M content/browser/accessibility/accessibility_mode_browsertest.cc View 1 2 3 3 chunks +31 lines, -36 lines 0 comments Download
D content/browser/accessibility/accessibility_mode_helper.h View 1 chunk +0 lines, -31 lines 0 comments Download
D content/browser/accessibility/accessibility_mode_helper.cc View 1 chunk +0 lines, -43 lines 0 comments Download
D content/browser/accessibility/accessibility_mode_helper_unittest.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M content/browser/accessibility/accessibility_ui.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 17 chunks +15 lines, -19 lines 0 comments Download
M content/browser/accessibility/android_granularity_movement_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.h View 2 chunks +6 lines, -11 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.cc View 1 2 3 5 chunks +15 lines, -27 lines 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_events_browsertest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/accessibility/hit_testing_browsertest.cc View 1 2 3 5 chunks +7 lines, -5 lines 0 comments Download
M content/browser/accessibility/touch_accessibility_aura_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 6 chunks +5 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 2 chunks +2 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 3 chunks +6 lines, -11 lines 0 comments Download
M content/common/accessibility_mode_enums.h View 1 2 3 1 chunk +52 lines, -18 lines 0 comments Download
M content/common/frame_messages.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (21 generated)
dmazzoni
Alice, could you take an initial pass before I get owners to review?
4 years ago (2016-12-07 20:24:47 UTC) #5
aboxhall
Mostly looks great, just a couple of things I'm confused about. https://codereview.chromium.org/2558933002/diff/20001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): ...
4 years ago (2016-12-12 20:18:29 UTC) #8
dmazzoni
https://codereview.chromium.org/2558933002/diff/20001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/2558933002/diff/20001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode133 content/browser/accessibility/browser_accessibility_state_impl.cc:133: mode &= (AccessibilityModeFlagNativeAPIs | On 2016/12/12 20:18:29, aboxhall wrote: ...
4 years ago (2016-12-12 22:15:36 UTC) #11
aboxhall
lgtm
4 years ago (2016-12-12 22:24:59 UTC) #12
dmazzoni
+jam for owners review of content/ +nasko for content/common/frame_messages.h
4 years ago (2016-12-12 23:49:16 UTC) #14
jam
https://codereview.chromium.org/2558933002/diff/40001/content/common/accessibility_mode_enums.h File content/common/accessibility_mode_enums.h (right): https://codereview.chromium.org/2558933002/diff/40001/content/common/accessibility_mode_enums.h#newcode16 content/common/accessibility_mode_enums.h:16: AccessibilityModeFlagNativeAPIs = 1 << 0, chromium style guide says ...
4 years ago (2016-12-13 01:35:12 UTC) #17
dmazzoni
https://codereview.chromium.org/2558933002/diff/40001/content/common/accessibility_mode_enums.h File content/common/accessibility_mode_enums.h (right): https://codereview.chromium.org/2558933002/diff/40001/content/common/accessibility_mode_enums.h#newcode16 content/common/accessibility_mode_enums.h:16: AccessibilityModeFlagNativeAPIs = 1 << 0, On 2016/12/13 01:35:12, jam ...
4 years ago (2016-12-13 19:41:51 UTC) #19
jam
lgtm
4 years ago (2016-12-14 17:42:04 UTC) #23
dmazzoni
+tsepez for trivial change to content/common/frame_messages.h
4 years ago (2016-12-14 17:44:58 UTC) #25
Tom Sepez
messages LGTM
4 years ago (2016-12-14 18:03:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2558933002/60001
4 years ago (2016-12-14 18:10:03 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 18:41:33 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-14 18:46:02 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dd3d51a7c8fb4e09d3c3bc0057408a5e1f43899a
Cr-Commit-Position: refs/heads/master@{#438547}

Powered by Google App Engine
This is Rietveld 408576698