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

Issue 2670003002: Accessibility for Autofill Popup View in native code (Closed)

Created:
3 years, 10 months ago by csashi
Modified:
3 years, 9 months ago
CC:
chromium-reviews, estade+watch_chromium.org, mathp+autofillwatch_chromium.org, rogerm+autofillwatch_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, tfarina, vabr+watchlistautofill_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Uses child views in Autofill Popup so we can trigger GetAccessibleNodeData in each of the Autofill popup suggestions. BUG=627860 Review-Url: https://codereview.chromium.org/2670003002 Cr-Commit-Position: refs/heads/master@{#453724} Committed: https://chromium.googlesource.com/chromium/src/+/67051d3d62d1522fa44afeb2385a3bb6b6a6f128

Patch Set 1 #

Total comments: 14

Patch Set 2 : Code review comments. #

Patch Set 3 : Incorporates Mathieu Perreault's suggestions. Adds NotifyAccessibilityEvent to mouse events in Auto… #

Total comments: 4

Patch Set 4 : Use child view only for accessibility, not for rendering #

Patch Set 5 : Use child view only for accessibility, not for rendering #

Patch Set 6 : Triggers AX_EVENT_ALERT to read autofill value." #

Patch Set 7 : Implements GetAccessibleNodeData in the parent view, triggers AX_EVENT_ALERT on popup Show. #

Patch Set 8 : Adds explicit call to RequestFocus in view. #

Patch Set 9 : Adds explicit call to RequestFocus in view. #

Patch Set 10 : Use AX_EVENT_MENU_START to announce that autofill popup was opened. #

Patch Set 11 : Removes call to RequestFocus. RequestFocus fails because the widget is not active. #

Total comments: 4

Patch Set 12 : Uses AX_ROLE_MENU for role. Removes 'popup' from the name. #

Patch Set 13 : Includes NotifyAccessibilityEventForRow in unit tests. #

Total comments: 10

Patch Set 14 : Moves AutofillPopupChildView to anonymous namespace. #

Total comments: 2

Patch Set 15 : Inline implementation of AutofillPopupChildView. #

Total comments: 2

Patch Set 16 : Inline implementation of AutofillPopupChildView. #

Total comments: 12

Patch Set 17 : Add debug class name check. #

Total comments: 6

Patch Set 18 : Code review comments. #

Patch Set 19 : Adds empty NotifyAccessibilityEventForRow implementation for Mac OS. #

Patch Set 20 : Adds empty NotifyAccessibilityEventForRow implementation for Android. #

Patch Set 21 : Adds empty NotifyAccessibilityEventForRow implementation for Android. #

Patch Set 22 : Switches to CHECK to ensure crash is caught early. #

Patch Set 23 : Switches to CHECK to ensure crash is caught early. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -5 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/autofill/autofill_popup_view_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_view.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_view_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_view_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +72 lines, -2 lines 0 comments Download

Messages

Total messages: 67 (21 generated)
Mathieu
draft comments to try! https://codereview.chromium.org/2670003002/diff/1/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/1/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode58 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:58: canvas->DrawColor(GetNativeTheme()->GetSystemColor( I think we could ...
3 years, 10 months ago (2017-02-02 19:30:15 UTC) #2
Mathieu
I'm installing Chromevox, will have a look shortly. More precisions on my comments, sorry I'm ...
3 years, 10 months ago (2017-02-02 22:07:45 UTC) #3
csashi
Hi Mathieu, I have still not figured out why GetAccessibleNodeData is not being called but ...
3 years, 10 months ago (2017-02-02 23:27:18 UTC) #4
csashi
On 2017/02/02 23:27:18, csashi wrote: > Hi Mathieu, > I have still not figured out ...
3 years, 10 months ago (2017-02-03 21:05:25 UTC) #5
csashi
On 2017/02/03 21:05:25, csashi wrote: > On 2017/02/02 23:27:18, csashi wrote: > > Hi Mathieu, ...
3 years, 10 months ago (2017-02-03 21:08:29 UTC) #8
anthonyvd
I really don't know enough about the accessibility system to advise but +dmazzoni@ who's an ...
3 years, 10 months ago (2017-02-06 14:53:58 UTC) #10
dmazzoni
Let's have a quick offline chat about what the desired behavior is and what the ...
3 years, 10 months ago (2017-02-06 16:27:11 UTC) #11
csashi
On 2017/02/06 16:27:11, dmazzoni wrote: > Let's have a quick offline chat about what the ...
3 years, 10 months ago (2017-02-09 19:45:33 UTC) #12
dmazzoni
On 2017/02/09 19:45:33, csashi wrote: > On 2017/02/06 16:27:11, dmazzoni wrote: > > Let's have ...
3 years, 10 months ago (2017-02-09 19:57:27 UTC) #13
csashi
On 2017/02/09 19:57:27, dmazzoni wrote: > On 2017/02/09 19:45:33, csashi wrote: > > On 2017/02/06 ...
3 years, 10 months ago (2017-02-10 19:02:56 UTC) #14
csashi
On 2017/02/10 19:02:56, csashi wrote: > On 2017/02/09 19:57:27, dmazzoni wrote: > > On 2017/02/09 ...
3 years, 10 months ago (2017-02-10 22:55:03 UTC) #15
csashi
On 2017/02/10 22:55:03, csashi wrote: > On 2017/02/10 19:02:56, csashi wrote: > > On 2017/02/09 ...
3 years, 10 months ago (2017-02-16 16:45:32 UTC) #16
csashi
On 2017/02/16 16:45:32, csashi wrote: > On 2017/02/10 22:55:03, csashi wrote: > > On 2017/02/10 ...
3 years, 10 months ago (2017-02-16 17:08:35 UTC) #17
dmazzoni
I think David or I may have to manually debug this a bit to figure ...
3 years, 10 months ago (2017-02-20 04:40:51 UTC) #19
David Tseng
Took a quick look. ChromeVox reads something like: "<auto complete value> menu item, 1 of ...
3 years, 10 months ago (2017-02-23 01:13:35 UTC) #20
csashi
On 2017/02/23 01:13:35, David Tseng wrote: > Took a quick look. ChromeVox reads something like: ...
3 years, 10 months ago (2017-02-23 17:22:40 UTC) #21
csashi
On 2017/02/23 17:22:40, csashi wrote: > On 2017/02/23 01:13:35, David Tseng wrote: > > Took ...
3 years, 10 months ago (2017-02-24 22:06:02 UTC) #22
David Tseng
https://codereview.chromium.org/2670003002/diff/200001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2670003002/diff/200001/chrome/app/generated_resources.grd#newcode9585 chrome/app/generated_resources.grd:9585: + Autofill Popup We typically don't include roles in ...
3 years, 10 months ago (2017-02-25 02:03:16 UTC) #23
csashi
Hi David, Please take a look. Thanks. -sashi. https://codereview.chromium.org/2670003002/diff/40001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc File chrome/browser/ui/views/autofill/autofill_popup_base_view.cc (right): https://codereview.chromium.org/2670003002/diff/40001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc#newcode128 chrome/browser/ui/views/autofill/autofill_popup_base_view.cc:128: NotifyAccessibilityEvent(ui::AX_EVENT_MOUSE_DRAGGED, ...
3 years, 10 months ago (2017-02-25 02:09:16 UTC) #24
David Tseng
lgtm
3 years, 10 months ago (2017-02-25 07:56:20 UTC) #25
csashi
Hi Mathieu, Can you review chrome/browser/ui/autofill? Hi Carlos, Can you approve chrome/app? Hi Scott, Can ...
3 years, 9 months ago (2017-02-27 17:32:33 UTC) #27
csashi
Hi Mathieu, Can you review chrome/browser/ui/autofill? Hi Carlos, Can you approve chrome/app? Hi Scott, Can ...
3 years, 9 months ago (2017-02-27 17:32:36 UTC) #28
Mathieu
Thanks Sashi, small questions https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode31 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:31: AutofillPopupChildView *child = new AutofillPopupChildView(controller, ...
3 years, 9 months ago (2017-02-27 18:41:55 UTC) #29
csashi
Hi Mathieu, Please take a look. Thanks, -sashi. https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode31 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:31: AutofillPopupChildView ...
3 years, 9 months ago (2017-02-27 18:49:44 UTC) #30
Mathieu
https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode31 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:31: AutofillPopupChildView *child = new AutofillPopupChildView(controller, i); On 2017/02/27 18:49:44, ...
3 years, 9 months ago (2017-02-27 19:01:05 UTC) #31
csashi
Hi Mathieu, Please take a look. -sashi. https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/240001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode31 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:31: AutofillPopupChildView *child ...
3 years, 9 months ago (2017-02-27 19:09:38 UTC) #32
Mathieu
lgtm with nit https://codereview.chromium.org/2670003002/diff/280001/chrome/browser/ui/views/autofill/autofill_popup_view_views.h File chrome/browser/ui/views/autofill/autofill_popup_view_views.h (right): https://codereview.chromium.org/2670003002/diff/280001/chrome/browser/ui/views/autofill/autofill_popup_view_views.h#newcode13 chrome/browser/ui/views/autofill/autofill_popup_view_views.h:13: #include "ui/views/view.h" move to cc
3 years, 9 months ago (2017-02-27 19:13:34 UTC) #33
csashi
https://codereview.chromium.org/2670003002/diff/280001/chrome/browser/ui/views/autofill/autofill_popup_view_views.h File chrome/browser/ui/views/autofill/autofill_popup_view_views.h (right): https://codereview.chromium.org/2670003002/diff/280001/chrome/browser/ui/views/autofill/autofill_popup_view_views.h#newcode13 chrome/browser/ui/views/autofill/autofill_popup_view_views.h:13: #include "ui/views/view.h" On 2017/02/27 19:13:34, Mathieu Perreault wrote: > ...
3 years, 9 months ago (2017-02-27 19:19:07 UTC) #34
sky
https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode65 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:65: AddChildViewAt(child, static_cast<int>(i)); optional: AddChildViewAt(child); works the same here. https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode77 ...
3 years, 9 months ago (2017-02-27 21:05:57 UTC) #35
csashi
Hi Scott, Please take a look. Thanks, -sashi. https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode65 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:65: AddChildViewAt(child, ...
3 years, 9 months ago (2017-02-27 21:32:38 UTC) #36
sky
https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode77 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:77: void AutofillPopupViewViews::Hide() { On 2017/02/27 21:32:37, csashi wrote: > ...
3 years, 9 months ago (2017-02-27 23:31:04 UTC) #37
csashi
Hi Scott, Can you take a look? Thanks, -sashi. https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode118 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:118: ...
3 years, 9 months ago (2017-02-28 00:03:06 UTC) #38
sky
https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode77 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:77: void AutofillPopupViewViews::Hide() { On 2017/02/27 23:31:04, sky wrote: > ...
3 years, 9 months ago (2017-02-28 04:03:34 UTC) #39
csashi
On 2017/02/28 04:03:34, sky wrote: > https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc > File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): > > https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode77 > ...
3 years, 9 months ago (2017-02-28 07:26:38 UTC) #40
dmazzoni
https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (right): https://codereview.chromium.org/2670003002/diff/300001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#newcode77 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:77: void AutofillPopupViewViews::Hide() { On 2017/02/28 04:03:32, sky wrote: > ...
3 years, 9 months ago (2017-02-28 16:53:18 UTC) #42
dmazzoni
lgtm
3 years, 9 months ago (2017-02-28 16:54:07 UTC) #43
sky
Ok, LGTM
3 years, 9 months ago (2017-02-28 17:54:50 UTC) #44
csashi
On 2017/02/28 17:54:50, sky wrote: > Ok, LGTM Hi Carlos, Can you approve for chrome/app? ...
3 years, 9 months ago (2017-02-28 19:32:38 UTC) #45
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/2670003002/340001
3 years, 9 months ago (2017-02-28 19:40:52 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/364923)
3 years, 9 months ago (2017-02-28 20:03:26 UTC) #51
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/2670003002/360001
3 years, 9 months ago (2017-02-28 20:16:07 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/241178)
3 years, 9 months ago (2017-02-28 20:42:00 UTC) #56
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/2670003002/380001
3 years, 9 months ago (2017-02-28 20:52:56 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/128055) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 9 months ago (2017-02-28 21:16:00 UTC) #61
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/2670003002/400001
3 years, 9 months ago (2017-02-28 21:19:56 UTC) #64
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 22:16:29 UTC) #67
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://chromium.googlesource.com/chromium/src/+/67051d3d62d1522fa44afeb2385a...

Powered by Google App Engine
This is Rietveld 408576698