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

Issue 2491773002: Page Info (Views): remove images from accessibility order (Closed)

Created:
4 years, 1 month ago by lgarron
Modified:
4 years, 1 month ago
Reviewers:
msw, dmazzoni
CC:
chromium-reviews, dmazzoni, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Page Info (Views): remove images from accessibility order Images are accompanied by descriptive text, so it is unnecessary for them to be in the accessibility order. (Currently, they are also read as "image", which is not useful.) BUG=660239 TEST=Two platforms: Mac: 1) Enable #mac-views-webui-dialogs in chrome://flags 2) Enable VoiceOver (Cmd-F5 by default) 3) Visit google.com and click on the lock icon to open the Page Info bubble. 4) Use Ctrl-Opt-(right arrow) to navigate the Page Info bubble. Text, buttons, and links should be read, but the images next to "Cookies" and the various permission should not. Windows: 1) Enable Microsoft Narrator. 2) Visit google.com and click on the lock icon to open the Page Info bubble. 3) Navigate the Page Info bubble [1]. Text, buttons, and links should be read, but the images next to "Cookies" and the various permission should not. [1] https://support.microsoft.com/en-us/help/14234/windows-hear-text-read-aloud-with-narrator Committed: https://crrev.com/2b1f577315991631d7e9d02d514d7e5042862e28 Cr-Commit-Position: refs/heads/master@{#432122}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move NonAccessibleImageView into a new class. #

Total comments: 17

Patch Set 3 : Address latest comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -4 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/website_settings/non_accessible_image_view.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/website_settings/non_accessible_image_view.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_row.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
lgarron
msw@, could you review? I've created two separate implementations of NonAccessibleImageView because that was the ...
4 years, 1 month ago (2016-11-09 22:51:39 UTC) #4
msw
Hey Dominic, please take a look at my question, thanks! https://codereview.chromium.org/2491773002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc (right): https://codereview.chromium.org/2491773002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_row.cc#newcode33 ...
4 years, 1 month ago (2016-11-10 03:04:15 UTC) #9
dmazzoni
https://codereview.chromium.org/2491773002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc (right): https://codereview.chromium.org/2491773002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_row.cc#newcode39 chrome/browser/ui/views/website_settings/permission_selector_row.cc:39: node_data->role = ui::AX_ROLE_IGNORED; On 2016/11/10 03:04:14, msw wrote: > ...
4 years, 1 month ago (2016-11-10 18:13:59 UTC) #10
lgarron
https://codereview.chromium.org/2491773002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc (right): https://codereview.chromium.org/2491773002/diff/1/chrome/browser/ui/views/website_settings/permission_selector_row.cc#newcode39 chrome/browser/ui/views/website_settings/permission_selector_row.cc:39: node_data->role = ui::AX_ROLE_IGNORED; On 2016/11/10 at 18:13:59, dmazzoni wrote: ...
4 years, 1 month ago (2016-11-10 22:59:55 UTC) #11
dmazzoni
lgtm I'm fine with NonAccessibleImageView, but I think node_data->AddStateFlag(ui::AX_STATE_INVISIBLE) would be a more clear way ...
4 years, 1 month ago (2016-11-10 23:07:33 UTC) #12
lgarron
msw@, could you review again? I've moved the non-accessible image view into a new class. ...
4 years, 1 month ago (2016-11-11 03:33:28 UTC) #13
msw
https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc File chrome/browser/ui/views/website_settings/non_accessible_image_view.cc (right): https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc#newcode8 chrome/browser/ui/views/website_settings/non_accessible_image_view.cc:8: node_data->role = ui::AX_ROLE_IGNORED; Please address Dominic's feedback: node_data->AddStateFlag(ui::AX_STATE_INVISIBLE). https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.h ...
4 years, 1 month ago (2016-11-11 15:55:01 UTC) #14
lgarron
https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc File chrome/browser/ui/views/website_settings/non_accessible_image_view.cc (right): https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc#newcode8 chrome/browser/ui/views/website_settings/non_accessible_image_view.cc:8: node_data->role = ui::AX_ROLE_IGNORED; On 2016/11/11 at 15:55:01, msw wrote: ...
4 years, 1 month ago (2016-11-11 22:28:51 UTC) #15
msw
lgtm https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.h File chrome/browser/ui/views/website_settings/non_accessible_image_view.h (right): https://codereview.chromium.org/2491773002/diff/20001/chrome/browser/ui/views/website_settings/non_accessible_image_view.h#newcode1 chrome/browser/ui/views/website_settings/non_accessible_image_view.h:1: // Copyright (c) 2016 The Chromium Authors. All ...
4 years, 1 month ago (2016-11-11 22:34:23 UTC) #16
lgarron
4 years, 1 month ago (2016-11-11 22:48:16 UTC) #17
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/2491773002/40001
4 years, 1 month ago (2016-11-15 03:21:43 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-15 05:58:14 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 06:05:01 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2b1f577315991631d7e9d02d514d7e5042862e28
Cr-Commit-Position: refs/heads/master@{#432122}

Powered by Google App Engine
This is Rietveld 408576698