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

Issue 2817022: Small tweaks to improve toolbar keyboard accessibility: Put focus rects... (Closed)

Created:
10 years, 6 months ago by dmazzoni
Modified:
9 years, 7 months ago
Reviewers:
David Tseng, sky
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Small tweaks to improve toolbar keyboard accessibility: Put focus rects around more controls (including location bar, only when in full keyboard access mode). Fix accessible names. Fix spacebar to activate menu buttons. Remove methods for child focus, they're not needed anymore. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50462

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -30 lines) Patch
M chrome/browser/chromeos/status/status_area_button.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/accessible_toolbar_view.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/views/accessible_toolbar_view.cc View 4 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/views/location_bar/location_bar_view.h View 4 chunks +15 lines, -0 lines 1 comment Download
M chrome/browser/views/location_bar/location_bar_view.cc View 7 chunks +16 lines, -0 lines 2 comments Download
M chrome/browser/views/toolbar_view.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 3 chunks +19 lines, -1 line 0 comments Download
M views/accessibility/view_accessibility.cc View 1 chunk +1 line, -3 lines 0 comments Download
M views/controls/button/menu_button.h View 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/button/menu_button.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M views/view.h View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dmazzoni
10 years, 6 months ago (2010-06-21 16:45:15 UTC) #1
sky
LGTM http://codereview.chromium.org/2817022/diff/1/5 File chrome/browser/views/location_bar/location_bar_view.cc (right): http://codereview.chromium.org/2817022/diff/1/5#newcode11 chrome/browser/views/location_bar/location_bar_view.cc:11: #include "app/l10n_util.h" after app/drag... http://codereview.chromium.org/2817022/diff/1/5#newcode567 chrome/browser/views/location_bar/location_bar_view.cc:567: canvas->DrawFocusRect(r.x() - ...
10 years, 6 months ago (2010-06-21 20:55:32 UTC) #2
David Tseng
LGTM. Does it make sense to pass through up/down arrows to the location bar in ...
10 years, 6 months ago (2010-06-21 21:54:56 UTC) #3
dmazzoni
Done, thanks. On Mon, Jun 21, 2010 at 1:55 PM, <sky@chromium.org> wrote: > LGTM > ...
10 years, 6 months ago (2010-06-21 22:52:58 UTC) #4
dmazzoni
Good question - the way it works right now is that accelerators get first dibs ...
10 years, 6 months ago (2010-06-21 22:55:09 UTC) #5
dmazzoni at google
10 years, 6 months ago (2010-06-21 22:55:35 UTC) #6
Good question - the way it works right now is that accelerators get first
dibs at keystrokes - they can grab keystrokes first and steal them from the
view. This patch makes sure that we don't steal left and right arrows from
the location entry view, even though we've registered those as accelerators.
All other keys already get passed directly through, including the up and
down arrows.

- Dominic

On Mon, Jun 21, 2010 at 2:54 PM, David Tseng <dtseng@chromium.org> wrote:

> LGTM.
>
> Does it make sense to pass through up/down arrows to the location bar
> in addition to left/right arrows?  Alternatively, should we pass
> through everything besides tab/shift tab?
>
> On 6/21/10, sky@chromium.org <sky@chromium.org> wrote:
> > LGTM
> >
> >
> > http://codereview.chromium.org/2817022/diff/1/5
> > File chrome/browser/views/location_bar/location_bar_view.cc (right):
> >
> > http://codereview.chromium.org/2817022/diff/1/5#newcode11
> > chrome/browser/views/location_bar/location_bar_view.cc:11: #include
> > "app/l10n_util.h"
> > after app/drag...
> >
> > http://codereview.chromium.org/2817022/diff/1/5#newcode567
> > chrome/browser/views/location_bar/location_bar_view.cc:567:
> > canvas->DrawFocusRect(r.x() - 1, r.y(), r.width() + 2, r.height());
> > Make sure this works for rtl.
> >
> > http://codereview.chromium.org/2817022/diff/1/6
> > File chrome/browser/views/location_bar/location_bar_view.h (right):
> >
> > http://codereview.chromium.org/2817022/diff/1/6#newcode158
> > chrome/browser/views/location_bar/location_bar_view.h:158: void
> > set_show_focus_rect(bool show) {
> > Since you've got a SchedulePaint in here, it's no longer cheap and
> > should be SetShowFocusRect.
> >
> > http://codereview.chromium.org/2817022/show
> >
>

Powered by Google App Engine
This is Rietveld 408576698