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

Issue 10949005: Fix toolbar keyboard accessibility on Views (alternative impl). (Closed)

Created:
8 years, 3 months ago by dmazzoni
Modified:
8 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Fix toolbar keyboard accessibility on Views (alternative impl). This broke when the location bar got moved out of the toolbar's view hierarchy, it no longer became possible to tab through all of the controls in the toolbar including the location bar. To fix this, I have AccessiblePaneView provide its own subclass of FocusSearch, overriding GetParent and Contains so that the location bar is considered to be part of the toolbar for focus searching. Adds a new test that should catch this type of regression in the future, while hopefully not being too brittle so it will still succeed as the toolbar changes over time. BUG=145835 TEST=Press F6 or Alt+Shift+T to focus the toolbar, then Tab to all of the focusable controls, make sure the location bar is included. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157914

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix linux_chromeos compile #

Total comments: 17

Patch Set 4 : git commit -a -m "Assert(false) -> gtest_fail" #

Patch Set 5 : address review comments #

Patch Set 6 : Fix views_unittest #

Patch Set 7 : Fix test on linux_chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -23 lines) Patch
M chrome/browser/ui/views/location_bar/location_bar_container.h View 1 2 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_container.cc View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 5 chunks +23 lines, -1 line 0 comments Download
A chrome/browser/ui/views/toolbar_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/accessible_pane_view.h View 1 2 3 4 5 3 chunks +21 lines, -0 lines 0 comments Download
M ui/views/accessible_pane_view.cc View 1 2 3 6 chunks +40 lines, -4 lines 0 comments Download
M ui/views/accessible_pane_view_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M ui/views/focus/focus_search.h View 1 2 3 2 chunks +12 lines, -4 lines 0 comments Download
M ui/views/focus/focus_search.cc View 4 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dmazzoni
8 years, 3 months ago (2012-09-18 21:16:12 UTC) #1
sky
http://codereview.chromium.org/10949005/diff/9001/chrome/browser/ui/views/toolbar_view_browsertest.cc File chrome/browser/ui/views/toolbar_view_browsertest.cc (right): http://codereview.chromium.org/10949005/diff/9001/chrome/browser/ui/views/toolbar_view_browsertest.cc#newcode11 chrome/browser/ui/views/toolbar_view_browsertest.cc:11: #include "chrome/browser/ui/views/toolbar_view.h" Include this first, newline, rest of includes. ...
8 years, 3 months ago (2012-09-18 21:46:06 UTC) #2
dmazzoni
http://codereview.chromium.org/10949005/diff/9001/chrome/browser/ui/views/toolbar_view_browsertest.cc File chrome/browser/ui/views/toolbar_view_browsertest.cc (right): http://codereview.chromium.org/10949005/diff/9001/chrome/browser/ui/views/toolbar_view_browsertest.cc#newcode11 chrome/browser/ui/views/toolbar_view_browsertest.cc:11: #include "chrome/browser/ui/views/toolbar_view.h" On 2012/09/18 21:46:06, sky wrote: > Include ...
8 years, 3 months ago (2012-09-19 00:23:40 UTC) #3
dmazzoni
Ping - how does it look now?
8 years, 3 months ago (2012-09-20 22:58:01 UTC) #4
sky
Sorry, I thought I LGTMd this the other day. LGTM
8 years, 3 months ago (2012-09-20 22:58:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/10949005/5015
8 years, 3 months ago (2012-09-20 23:02:10 UTC) #6
commit-bot: I haz the power
8 years, 3 months ago (2012-09-21 03:40:31 UTC) #7
Change committed as 157914

Powered by Google App Engine
This is Rietveld 408576698