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

Issue 1055883002: Fire an alert event to notify accessibility when a permissions bubble gets shown. (Closed)

Created:
5 years, 8 months ago by David Tseng
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dtseng+watch_chromium.org, je_julie(Not used), nkostylev+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, markusheintz_, stevenjb+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an event to notify accessibility when a permissions bubble gets shown. BUG=381338 TEST=ctrl+alt+z; navigate to html5demos.com/geo; observe speech is as expected (reads contents of bubble). Committed: https://crrev.com/36318aa45e02cf0b5cf871bf38bbe47f3431cc8d Cr-Commit-Position: refs/heads/master@{#323982}

Patch Set 1 #

Patch Set 2 : Adjust some output rules for ChromeVox. #

Total comments: 4

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Do not condition upon presence of anchor. #

Total comments: 2

Patch Set 5 : Remove braces. #

Patch Set 6 : Fix tests. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 2 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 4 comments Download

Messages

Total messages: 30 (8 generated)
David Tseng
5 years, 8 months ago (2015-04-02 18:10:16 UTC) #2
David Tseng
+ markusheintz for c/b/u/w/* + dmazzoni for c/b/r/c/chromevox
5 years, 8 months ago (2015-04-02 20:21:57 UTC) #4
dmazzoni
I'd prefer to solve this for all bubbles, not just this one https://codereview.chromium.org/1055883002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ...
5 years, 8 months ago (2015-04-02 20:29:20 UTC) #5
David Tseng
https://codereview.chromium.org/1055883002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/1055883002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js#newcode198 chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:198: speak: '$value $name' On 2015/04/02 20:29:20, dmazzoni wrote: > ...
5 years, 8 months ago (2015-04-02 22:46:59 UTC) #6
dmazzoni
lgtm Putting it in BubbleDelegateView::HandleVisibilityChanged sounds great. Thanks.
5 years, 8 months ago (2015-04-04 06:55:06 UTC) #7
felt
+msw since neither markuzheintz_ nor i are reviewers for ui/views/bubble/
5 years, 8 months ago (2015-04-04 14:36:32 UTC) #9
David Tseng
Monday bump. Thanks. On 2015/04/04 14:36:32, felt wrote: > +msw since neither markuzheintz_ nor i ...
5 years, 8 months ago (2015-04-06 17:11:14 UTC) #10
msw
https://codereview.chromium.org/1055883002/diff/40001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/1055883002/diff/40001/ui/views/bubble/bubble_delegate.cc#newcode305 ui/views/bubble/bubble_delegate.cc:305: NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); Most bubbles should have an anchor, but ...
5 years, 8 months ago (2015-04-06 17:30:19 UTC) #11
David Tseng
https://codereview.chromium.org/1055883002/diff/40001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/1055883002/diff/40001/ui/views/bubble/bubble_delegate.cc#newcode305 ui/views/bubble/bubble_delegate.cc:305: NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); On 2015/04/06 17:30:19, msw wrote: > Most ...
5 years, 8 months ago (2015-04-06 17:36:05 UTC) #12
msw
lgtm with a nit https://codereview.chromium.org/1055883002/diff/60001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/1055883002/diff/60001/ui/views/bubble/bubble_delegate.cc#newcode303 ui/views/bubble/bubble_delegate.cc:303: if (visible) { nit: you ...
5 years, 8 months ago (2015-04-06 17:57:20 UTC) #13
David Tseng
https://codereview.chromium.org/1055883002/diff/60001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/1055883002/diff/60001/ui/views/bubble/bubble_delegate.cc#newcode303 ui/views/bubble/bubble_delegate.cc:303: if (visible) { On 2015/04/06 17:57:20, msw wrote: > ...
5 years, 8 months ago (2015-04-06 18:03:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055883002/80001
5 years, 8 months ago (2015-04-06 18:04:21 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/4905)
5 years, 8 months ago (2015-04-06 19:28:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055883002/100001
5 years, 8 months ago (2015-04-06 22:47:20 UTC) #22
msw
Now I'm confused and worried that this is wrong... not lgtm. Why isn't this applicable ...
5 years, 8 months ago (2015-04-06 23:01:20 UTC) #23
David Tseng
https://codereview.chromium.org/1055883002/diff/100001/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc File chrome/browser/ui/views/website_settings/permissions_bubble_view.cc (right): https://codereview.chromium.org/1055883002/diff/100001/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc#newcode357 chrome/browser/ui/views/website_settings/permissions_bubble_view.cc:357: state->role = ui::AX_ROLE_ALERT_DIALOG; On 2015/04/06 23:01:20, msw wrote: > ...
5 years, 8 months ago (2015-04-06 23:34:02 UTC) #24
David Tseng
Dominic, would you be ok if I submitted patchset 2 considering that we will need ...
5 years, 8 months ago (2015-04-07 00:00:12 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-07 00:04:52 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/36318aa45e02cf0b5cf871bf38bbe47f3431cc8d Cr-Commit-Position: refs/heads/master@{#323982}
5 years, 8 months ago (2015-04-07 00:06:24 UTC) #27
msw
https://codereview.chromium.org/1055883002/diff/100001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/1055883002/diff/100001/ui/views/bubble/bubble_delegate.cc#newcode312 ui/views/bubble/bubble_delegate.cc:312: if (state.role == ui::AX_ROLE_ALERT_DIALOG) On 2015/04/06 23:34:02, David Tseng ...
5 years, 8 months ago (2015-04-07 00:18:22 UTC) #28
David Tseng
I'll go ahead and revert. https://codereview.chromium.org/1055883002/diff/100001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/1055883002/diff/100001/ui/views/bubble/bubble_delegate.cc#newcode312 ui/views/bubble/bubble_delegate.cc:312: if (state.role == ui::AX_ROLE_ALERT_DIALOG) ...
5 years, 8 months ago (2015-04-07 16:58:06 UTC) #29
David Tseng
5 years, 8 months ago (2015-04-07 16:59:53 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1066973002/ by dtseng@chromium.org.

The reason for reverting is: Not lg'ed by OWNER as of latest patchset..

Powered by Google App Engine
This is Rietveld 408576698