|
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
Total comments: 26
|
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
|
Total messages: 20 (0 generated)
|