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

Issue 2601883002: MacViews/a11y: Mark Views as invisible if their parents are invisible. (Closed)

Created:
3 years, 11 months ago by Patti Lor
Modified:
3 years, 11 months ago
Reviewers:
karandeepb, dmazzoni
CC:
chromium-reviews, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews/a11y: Mark Views as invisible if their parents are invisible. Currently, only Views returning false from View::visible() will be marked invisible to a11y clients. This doesn't account for all invisible Views, since Views which have an invisible ancestor will also be invisible, but still return true from View::visible(). Account for this when tagging Views invisible for a11y by switching to View::IsDrawn() instead. MacViews a11y already ignores invisible Views, so this will fix issues where a11y clients are seeing invisible controls. BUG=657848, 660230 TEST=On Mac, with the #secondary-ui-md flag turned on, open the OIB by clicking the icon on the left of the URL, then open the collected cookies dialog by clicking the link under "Cookies", which should read "<X> in use". Turn on VoiceOver by pressing Cmd+F5 and navigate through the contents of the "Allowed" tab with VO by pressing Ctrl+Right Arrow. Verify it doesn't read out controls that belong to the "Blocked" tab. Committed: https://crrev.com/452d2878e6c634245c5757fc0549876e4631722c Cr-Commit-Position: refs/heads/master@{#441001}

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 9

Patch Set 3 : Switch to View::IsDrawn(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M ui/views/accessibility/native_view_accessibility.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/accessibility/native_view_accessibility_unittest.cc View 1 2 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 29 (19 generated)
Patti Lor
Hey Karan, PTAL! :P The first bug has a repro case, but the CL attached ...
3 years, 11 months ago (2016-12-28 02:45:25 UTC) #9
karandeepb
Maybe also add a TEST= field Patti? https://codereview.chromium.org/2601883002/diff/20001/ui/views/accessibility/native_view_accessibility.cc File ui/views/accessibility/native_view_accessibility.cc (right): https://codereview.chromium.org/2601883002/diff/20001/ui/views/accessibility/native_view_accessibility.cc#newcode103 ui/views/accessibility/native_view_accessibility.cc:103: if (!IsViewVisible(view_)) ...
3 years, 11 months ago (2016-12-28 10:57:10 UTC) #10
karandeepb
https://codereview.chromium.org/2601883002/diff/20001/ui/views/accessibility/native_view_accessibility.cc File ui/views/accessibility/native_view_accessibility.cc (right): https://codereview.chromium.org/2601883002/diff/20001/ui/views/accessibility/native_view_accessibility.cc#newcode21 ui/views/accessibility/native_view_accessibility.cc:21: while (view) { Also a visible view with no ...
3 years, 11 months ago (2016-12-28 10:59:59 UTC) #11
Patti Lor
Thanks Karan, have also added a TEST= field now :) https://codereview.chromium.org/2601883002/diff/20001/ui/views/accessibility/native_view_accessibility.cc File ui/views/accessibility/native_view_accessibility.cc (right): https://codereview.chromium.org/2601883002/diff/20001/ui/views/accessibility/native_view_accessibility.cc#newcode21 ...
3 years, 11 months ago (2016-12-29 00:57:56 UTC) #15
karandeepb
LGTM. You'll also need to update the CL description. It still says - "Account for ...
3 years, 11 months ago (2016-12-29 09:36:16 UTC) #18
dmazzoni
lgtm
3 years, 11 months ago (2016-12-29 16:15:08 UTC) #20
Patti Lor
Thanks both for the reviews! Have updated the CL description as Karan said.
3 years, 11 months ago (2016-12-29 22:43:38 UTC) #22
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/2601883002/40001
3 years, 11 months ago (2016-12-29 22:44:20 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
3 years, 11 months ago (2016-12-29 22:49:10 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:53:36 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/452d2878e6c634245c5757fc0549876e4631722c
Cr-Commit-Position: refs/heads/master@{#441001}

Powered by Google App Engine
This is Rietveld 408576698