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

Issue 23651003: Use Blink accessibility enums in Chromium (Closed)

Created:
7 years, 3 months ago by dmazzoni
Modified:
7 years, 3 months ago
CC:
chromium-reviews, jbauman+watch_chromium.org, James Su, yusukes+watch_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, sievers+watch_chromium.org, jam, penghuang+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, ctguil+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Use Blink accessibility enums in Chromium This is a refactoring-only change! Eliminates enums for accessibility roles, states, and notifications and uses equivalent enums from Blink instead. Saves several giant switch statements, saves a few characters per line, and makes future changes to roles and states simpler. Another benefit is that you can search for a role, state, or event and find all of the places where it's used throughout the code at once. Also renames WebAccessibilityObject -> WebAXObject and notification -> event in the context of accessibility. BUG=269034 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221295

Patch Set 1 #

Patch Set 2 : Fixed compile errors #

Total comments: 26

Patch Set 3 : Fixed compile errors #

Patch Set 4 : Dup enums #

Patch Set 5 : Compile fix #

Patch Set 6 : Fix compile errors, fix canvas role #

Patch Set 7 : Fix win compile #

Patch Set 8 : Address feedback, fix win tests #

Patch Set 9 : Another win fix #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1344 lines, -1928 lines) Patch
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 2 9 chunks +9 lines, -9 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 4 chunks +14 lines, -15 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_android.cc View 1 2 3 4 5 14 chunks +51 lines, -52 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 4 5 26 chunks +193 lines, -214 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_gtk.cc View 1 3 chunks +18 lines, -21 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_mac_unittest.mm View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 4 chunks +6 lines, -9 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 8 chunks +19 lines, -19 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 2 chunks +14 lines, -14 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_gtk.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_gtk.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.mm View 1 2 3 4 5 6 7 1 chunk +47 lines, -26 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 12 chunks +38 lines, -38 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 5 6 7 3 chunks +29 lines, -28 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 31 chunks +174 lines, -179 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +59 lines, -58 lines 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 11 chunks +24 lines, -24 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/accessibility_messages.h View 5 chunks +15 lines, -16 lines 0 comments Download
M content/common/accessibility_node_data.h View 1 2 3 4 5 5 chunks +6 lines, -156 lines 0 comments Download
M content/common/accessibility_node_data.cc View 1 2 3 4 5 3 chunks +134 lines, -136 lines 0 comments Download
D content/common/accessibility_notification.h View 1 chunk +0 lines, -89 lines 0 comments Download
M content/common/swapped_out_messages.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/accessibility/accessibility_node_serializer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/accessibility/accessibility_node_serializer.cc View 1 2 3 4 5 17 chunks +75 lines, -298 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.h View 3 chunks +4 lines, -7 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.cc View 1 2 3 4 5 2 chunks +31 lines, -32 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 16 chunks +135 lines, -135 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.h View 6 chunks +18 lines, -24 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.cc View 1 2 3 4 5 26 chunks +102 lines, -193 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_focus_only.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_focus_only.cc View 3 chunks +27 lines, -28 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -8 lines 0 comments Download
M content/test/accessibility_browser_test_utils.h View 1 4 chunks +3 lines, -4 lines 0 comments Download
M content/test/accessibility_browser_test_utils.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M content/test/data/accessibility/aria-application-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
dmazzoni
7 years, 3 months ago (2013-08-28 18:24:19 UTC) #1
aboxhall
Still a bit confused as to what's coming from AccessibilityNodeData vs. WebAXEnums so please ignore ...
7 years, 3 months ago (2013-08-29 00:59:06 UTC) #2
dmazzoni
On Wed, Aug 28, 2013 at 5:59 PM, <aboxhall@chromium.org> wrote: > Still a bit confused ...
7 years, 3 months ago (2013-08-29 03:05:15 UTC) #3
dmazzoni
https://codereview.chromium.org/23651003/diff/3001/content/browser/accessibility/accessibility_win_browsertest.cc File content/browser/accessibility/accessibility_win_browsertest.cc (right): https://codereview.chromium.org/23651003/diff/3001/content/browser/accessibility/accessibility_win_browsertest.cc#newcode765 content/browser/accessibility/accessibility_win_browsertest.cc:765: IA2_ROLE_TOGGLE_BUTTOn, STATE_SYSTEM_FOCUSABLE | STATE_SYSTEM_PRESSED); On 2013/08/29 00:59:06, aboxhall wrote: ...
7 years, 3 months ago (2013-08-29 04:47:14 UTC) #4
aboxhall
https://codereview.chromium.org/23651003/diff/3001/content/browser/accessibility/browser_accessibility.h File content/browser/accessibility/browser_accessibility.h (right): https://codereview.chromium.org/23651003/diff/3001/content/browser/accessibility/browser_accessibility.h#newcode15 content/browser/accessibility/browser_accessibility.h:15: #include "content/common/accessibility_node_data.h" On 2013/08/29 04:47:15, Dominic Mazzoni wrote: > ...
7 years, 3 months ago (2013-08-29 15:34:08 UTC) #5
dmazzoni
Feedback addressed, see below. One last note: I needed to fix one windows test expectation ...
7 years, 3 months ago (2013-08-29 17:44:58 UTC) #6
aboxhall
lgtm
7 years, 3 months ago (2013-08-29 17:47:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/23651003/46001
7 years, 3 months ago (2013-08-30 13:58:55 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=23202
7 years, 3 months ago (2013-08-30 14:09:06 UTC) #9
dmazzoni
+piman for owners review of content/
7 years, 3 months ago (2013-08-30 14:51:38 UTC) #10
dmazzoni
+jam for OWNERS review of content/
7 years, 3 months ago (2013-09-03 20:21:05 UTC) #11
jam
lgtm
7 years, 3 months ago (2013-09-03 20:45:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/23651003/46001
7 years, 3 months ago (2013-09-03 22:03:35 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/renderer/chrome_render_view_observer.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-03 22:03:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/23651003/56001
7 years, 3 months ago (2013-09-04 16:36:47 UTC) #15
dmazzoni
+jschuh for content/common/accessibility_messages.h +jamesr for content/browser/DEPS (including third_party/WebKit/public/web/WebAXEnums.h)
7 years, 3 months ago (2013-09-04 17:20:59 UTC) #16
jschuh
ipc security lgtm. two new enums
7 years, 3 months ago (2013-09-04 19:03:12 UTC) #17
jamesr
lgtm for DEPS
7 years, 3 months ago (2013-09-04 19:37:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/23651003/56001
7 years, 3 months ago (2013-09-04 19:47:22 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 23:32:24 UTC) #20
Message was sent while issue was closed.
Change committed as 221295

Powered by Google App Engine
This is Rietveld 408576698