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

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed)

Created:
7 years, 4 months ago by dmazzoni
Modified:
7 years, 3 months ago
Reviewers:
jamesr, aboxhall, tfarina
CC:
blink-reviews, jamesr, aboxhall, eae+blinkwatch, abarth-chromium, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Clean up accessibility enums for use in Chromium. The goal of this change is to make it possible for Chromium to use Blink accessibility role, state, and event enums throughout its codebase, rather than copying to separate enums. * Rename the enums in public/web so they're more concise, e.g. WebAccessibilityRoleDocumentArticle -> WebAXTypes::ArticleRole WebAccessibilityNotificationLoadComplete -> WebAXTypes::LoadComplete * Add missing enum values currently used in Chromium, delete unused values. * Rename a few enum values that were unclear or confusing. This will require a cleanup change after Chromium switches over. BUG=269034 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156740

Patch Set 1 #

Patch Set 2 : reupload #

Total comments: 14

Patch Set 3 : Fix enum naming convention #

Patch Set 4 : Rename header file WebAXEnums.h #

Patch Set 5 : Moved enum inside wrapper class #

Patch Set 6 : Update failing tests, add one missing role #

Total comments: 13

Patch Set 7 : Switch back to top-level enums #

Patch Set 8 : No find copies #

Patch Set 9 : Rebase #

Patch Set 10 : Add forgotten file back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+963 lines, -544 lines) Patch
M LayoutTests/accessibility/main-element.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/accessibility/main-element-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-ax-value-changed-notification.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-ax-value-changed-notification-expected.txt View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-ax-value-changed-notification.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-ax-value-changed-notification-expected.txt View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/forms/month-multiple-fields/month-multiple-fields-ax-value-changed-notification.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/month-multiple-fields/month-multiple-fields-ax-value-changed-notification-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-ax-value-changed-notification.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-ax-value-changed-notification-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-ax-value-changed-notification.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-ax-value-changed-notification-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/accessibility/AXObjectCache.h View 2 chunks +15 lines, -15 lines 0 comments Download
M Source/core/accessibility/AXObjectCache.cpp View 1 2 3 4 5 6 2 chunks +3 lines, -42 lines 0 comments Download
M Source/core/accessibility/AccessibilityImageMapLink.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/accessibility/AccessibilityNodeObject.cpp View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/accessibility/AccessibilityObject.h View 1 2 3 4 5 6 7 8 5 chunks +59 lines, -35 lines 0 comments Download
M Source/core/accessibility/AccessibilityObject.cpp View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -21 lines 0 comments Download
M Source/core/accessibility/AccessibilityRenderObject.cpp View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -16 lines 0 comments Download
M Source/core/editing/AppendNodeCommand.cpp View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -19 lines 0 comments Download
Source/core/editing/DeleteFromTextNodeCommand.cpp View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -8 lines 0 comments Download
M Source/core/editing/InsertIntoTextNodeCommand.cpp View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -8 lines 0 comments Download
M Source/core/editing/InsertNodeBeforeCommand.cpp View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -8 lines 0 comments Download
M Source/testing/runner/AccessibilityUIElementChromium.cpp View 1 2 3 4 5 6 7 8 2 chunks +203 lines, -199 lines 0 comments Download
M Source/testing/runner/WebTestProxy.cpp View 1 2 3 4 5 6 7 8 2 chunks +67 lines, -49 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 7 chunks +205 lines, -43 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -2 lines 0 comments Download
M Source/web/WebAccessibilityObject.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M public/testing/WebTestProxy.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
A public/web/WebAXEnums.h View 1 2 3 4 5 6 7 8 9 1 chunk +213 lines, -0 lines 0 comments Download
A public/web/WebAXObject.h View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
M public/web/WebAccessibilityNotification.h View 1 2 3 5 6 1 chunk +17 lines, -9 lines 0 comments Download
M public/web/WebAccessibilityObject.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M public/web/WebAccessibilityRole.h View 1 2 3 4 5 6 4 chunks +40 lines, -35 lines 0 comments Download
M public/web/WebViewClient.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
dmazzoni
7 years, 4 months ago (2013-08-07 07:01:12 UTC) #1
aboxhall
https://codereview.chromium.org/22331005/diff/4001/Source/core/accessibility/AccessibilityObject.h File Source/core/accessibility/AccessibilityObject.h (left): https://codereview.chromium.org/22331005/diff/4001/Source/core/accessibility/AccessibilityObject.h#oldcode172 Source/core/accessibility/AccessibilityObject.h:172: WebCoreLinkRole, What was this role doing previously? I see ...
7 years, 4 months ago (2013-08-07 15:58:10 UTC) #2
dmazzoni
https://codereview.chromium.org/22331005/diff/4001/Source/core/accessibility/AccessibilityObject.h File Source/core/accessibility/AccessibilityObject.h (left): https://codereview.chromium.org/22331005/diff/4001/Source/core/accessibility/AccessibilityObject.h#oldcode172 Source/core/accessibility/AccessibilityObject.h:172: WebCoreLinkRole, On 2013/08/07 15:58:10, aboxhall wrote: > What was ...
7 years, 4 months ago (2013-08-07 16:23:53 UTC) #3
tfarina
https://codereview.chromium.org/22331005/diff/4001/public/web/WebAccessibilityEnums.h File public/web/WebAccessibilityEnums.h (right): https://codereview.chromium.org/22331005/diff/4001/public/web/WebAccessibilityEnums.h#newcode34 public/web/WebAccessibilityEnums.h:34: #include "../platform/WebCommon.h" do you need this include here?
7 years, 4 months ago (2013-08-07 17:22:52 UTC) #4
jamesr
https://codereview.chromium.org/22331005/diff/4001/public/web/WebAccessibilityEnums.h File public/web/WebAccessibilityEnums.h (right): https://codereview.chromium.org/22331005/diff/4001/public/web/WebAccessibilityEnums.h#newcode40 public/web/WebAccessibilityEnums.h:40: enum AXNotification { all public Blink API types should ...
7 years, 4 months ago (2013-08-07 17:26:09 UTC) #5
dmazzoni
https://codereview.chromium.org/22331005/diff/4001/public/web/WebAccessibilityEnums.h File public/web/WebAccessibilityEnums.h (right): https://codereview.chromium.org/22331005/diff/4001/public/web/WebAccessibilityEnums.h#newcode34 public/web/WebAccessibilityEnums.h:34: #include "../platform/WebCommon.h" On 2013/08/07 17:22:52, tfarina wrote: > do ...
7 years, 4 months ago (2013-08-07 18:27:29 UTC) #6
jamesr
Will everything move over to WebAX.... or will some be left WebAccessibility...? I think having ...
7 years, 4 months ago (2013-08-07 18:29:30 UTC) #7
dmazzoni
On 2013/08/07 18:29:30, jamesr wrote: > Will everything move over to WebAX.... or will some ...
7 years, 4 months ago (2013-08-07 18:34:20 UTC) #8
jamesr
If we're moving to a consistent naming scheme across the board then I don't think ...
7 years, 4 months ago (2013-08-09 22:12:23 UTC) #9
jamesr
The new file should be called WebAXEnums.h, shouldn't it?
7 years, 4 months ago (2013-08-09 22:13:05 UTC) #10
dmazzoni
Maybe it'd be better to have them in a wrapper class - that's consistent with ...
7 years, 4 months ago (2013-08-14 19:17:54 UTC) #11
dmazzoni
This look okay?
7 years, 4 months ago (2013-08-20 15:30:49 UTC) #12
aboxhall
lgtm https://codereview.chromium.org/22331005/diff/29001/public/web/WebAXObject.h File public/web/WebAXObject.h (right): https://codereview.chromium.org/22331005/diff/29001/public/web/WebAXObject.h#newcode31 public/web/WebAXObject.h:31: #ifndef WebAXObject_h Did this detect a strange base ...
7 years, 4 months ago (2013-08-20 19:54:11 UTC) #13
jamesr
I'm sorry for the very slow review but this still doesn't follow blink API conventions. ...
7 years, 4 months ago (2013-08-21 02:22:52 UTC) #14
dmazzoni
I'm not deliberately ignoring your feedback. I read through all of the blink public APIs ...
7 years, 4 months ago (2013-08-21 03:07:57 UTC) #15
jamesr
You're welcome to fix those enums too. not lgtm
7 years, 4 months ago (2013-08-21 03:13:15 UTC) #16
dmazzoni
Reverted to previous patch set with top-level enums that follow the Blink public API style, ...
7 years, 4 months ago (2013-08-22 20:58:22 UTC) #17
jamesr
public/ lgtm. I didn't look at the rest
7 years, 4 months ago (2013-08-22 20:59:58 UTC) #18
dmazzoni
Thanks. Alice, please take a final pass through the rest of the change when you ...
7 years, 4 months ago (2013-08-22 21:01:50 UTC) #19
aboxhall
lgtm So much more readable now!
7 years, 3 months ago (2013-08-26 16:38:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/22331005/100001
7 years, 3 months ago (2013-08-26 19:04:15 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-08-26 19:39:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/22331005/110001
7 years, 3 months ago (2013-08-26 22:36:04 UTC) #23
commit-bot: I haz the power
7 years, 3 months ago (2013-08-27 01:01:03 UTC) #24
Message was sent while issue was closed.
Change committed as 156740

Powered by Google App Engine
This is Rietveld 408576698