Chromium Code Reviews

Issue 3421033: Send an EVENT_SYSTEM_ALERT when a user first places focus within an infobar. (Closed)

Created:
10 years, 3 months ago by David Tseng
Modified:
9 years, 5 months ago
Reviewers:
Chris Guillory
CC:
dmazzoni, chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Send an EVENT_SYSTEM_ALERT when a user first places focus within an infobar. TEST=use Jaws and NVDA to verify that alert gets read when focus enters the infobar. BUG=37360 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60672

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Stats (+20 lines, -0 lines)
M chrome/browser/views/infobars/infobars.h View 3 chunks +5 lines, -0 lines 0 comments
M chrome/browser/views/infobars/infobars.cc View 3 chunks +15 lines, -0 lines 0 comments

Messages

Total messages: 4 (0 generated)
David Tseng
This adds the logic to send the alert event whenever focus first lands within the ...
10 years, 3 months ago (2010-09-24 22:04:08 UTC) #1
Chris Guillory
LGTM. One comment about adding a comment. Dominic mentioned that there might be a problem ...
10 years, 3 months ago (2010-09-24 22:12:29 UTC) #2
David Tseng
On 9/24/10, ctguil@chromium.org <ctguil@chromium.org> wrote: > LGTM. One comment about adding a comment. Dominic mentioned ...
10 years, 3 months ago (2010-09-24 22:35:47 UTC) #3
dmazzoni
10 years, 3 months ago (2010-09-24 22:39:31 UTC) #4
Yes, sometimes the focus will change from View A to NULL, and from NULL to
View B. So if View A and View B are both within the same infobar, this would
end up being too verbose.

Probably best to keep track of the last non-NULL view or a bool whether the
focus was previously in the InfoBar.

Otherwise LGTM.

- Dominic

On Fri, Sep 24, 2010 at 3:35 PM, David Tseng <dtseng@chromium.org> wrote:

> On 9/24/10, ctguil@chromium.org <ctguil@chromium.org> wrote:
> > LGTM. One comment about adding a comment. Dominic mentioned that there
> > might be
> > a problem with making this stateless but if it works lets get it in and
> we
> > can
> > investigate problems.
> >
> >
> > http://codereview.chromium.org/3421033/diff/1/2
> > File chrome/browser/views/infobars/infobars.cc (right):
> >
> > http://codereview.chromium.org/3421033/diff/1/2#newcode191
> > chrome/browser/views/infobars/infobars.cc:191: if (focused_before &&
> > focused_now &&
> > Add a comment here. Mention that this is for JAWS.
> Done.
>
> I haven't been able to trigger all the various types of infobars, so
> issues may or may not crop up.
>

Powered by Google App Engine