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

Issue 333010: Implement keyboard access between bookmarks and toolbar. (Closed)

Created:
11 years, 2 months ago by Mohamed Mansour
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement keyboard access between bookmarks and main toolbar. Allow ALT+SHIFT+T and TAB to traverse between bookmarks bar and main toolbar, same thing goes for SHIFT+TAB. Once any toolbar is focused, the arrow keys are used to traverse its children views. Any toolbar that needs to be traversable needs to extend "AccessibleToolbarView", that class will deal with all the toolbar accessibility needs such as handling ESC, Left/Right arrows, Enter, Drop downs, and traversals with Tab/Shift+Tab. There is one abstract method that the views who are extending this would need to implement if needed which allows the toolbar to skip views that are being traversed: bool IsAccessibleViewTraversable(views::View* view) BUG=25625 TEST=Test to see if the main toolbar and bookmarks bar is traversable. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33793

Patch Set 1 : Fix headers for Linux compilation #

Total comments: 40

Patch Set 2 : Fix nits and functionality #

Total comments: 32

Patch Set 3 : Complete reorganization, much cleaner and better! #

Total comments: 3

Patch Set 4 : rebase #

Total comments: 30

Patch Set 5 : Fix nits #

Patch Set 6 : Minor change #

Total comments: 6

Patch Set 7 : Attempt to address the sky #

Patch Set 8 : rebase #

Patch Set 9 : Save the original last focused view so pressing ESC would work with multiple toolbars #

Total comments: 4

Patch Set 10 : Apply Scott's changes #

Total comments: 4

Patch Set 11 : Fix GYP nits #

Total comments: 8

Patch Set 12 : Add more null checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -315 lines) Patch
A chrome/browser/views/accessible_toolbar_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/views/accessible_toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +272 lines, -0 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -23 lines 0 comments Download
M chrome/browser/views/detachable_toolbar_view.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +29 lines, -5 lines 0 comments Download
M chrome/browser/views/toolbar_view.h View 1 2 6 chunks +6 lines, -33 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -245 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M views/controls/button/menu_button.h View 3 chunks +8 lines, -0 lines 0 comments Download
M views/controls/button/menu_button.cc View 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Mohamed Mansour
This is just an initial implementation on what I think could be a possible solution. ...
11 years, 2 months ago (2009-10-23 05:55:24 UTC) #1
Mohamed Mansour
It works, yay. So far, just Bookmarks bar and Toolbar bar is traversable. Please review!
11 years, 2 months ago (2009-10-24 01:44:03 UTC) #2
Mohamed Mansour
Anyone willing to review please? This does some work on "views" so that the toolbars ...
11 years, 2 months ago (2009-10-25 02:56:06 UTC) #3
sky
http://codereview.chromium.org/333010/diff/3002/2022 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/3002/2022#newcode34 Line 34: // Skip any views that cannot be interacted ...
11 years, 1 month ago (2009-10-27 21:40:12 UTC) #4
Mohamed Mansour
Thanks for the review. Most of the code in accessible_toolbar_view came from (moved) from toolbar_view. ...
11 years, 1 month ago (2009-10-28 15:50:15 UTC) #5
jcampan
http://codereview.chromium.org/333010/diff/11002/12002 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/11002/12002#newcode25 Line 25: int modifier = 1; int modified = forward ...
11 years, 1 month ago (2009-10-28 16:53:53 UTC) #6
sky
> http://codereview.chromium.org/333010/diff/3002/2023 > File chrome/browser/views/accessible_toolbar_view.h (right): > > http://codereview.chromium.org/333010/diff/3002/2023#newcode8 > Line 8: #include "chrome/browser/views/frame/browser_view.h" > ...
11 years, 1 month ago (2009-10-28 17:46:25 UTC) #7
Mohamed Mansour
You guys are awesome! Thanks for the reviews =) BTW, this CL is now cleaner, ...
11 years, 1 month ago (2009-10-29 05:30:18 UTC) #8
Mohamed Mansour
ping
11 years, 1 month ago (2009-10-31 04:35:12 UTC) #9
jcampan
http://codereview.chromium.org/333010/diff/16004/18003 File chrome/browser/views/bookmark_bar_view.cc (right): http://codereview.chromium.org/333010/diff/16004/18003#newcode869 Line 869: AddChildView(other_bookmarked_button_); Why was this code moved? http://codereview.chromium.org/333010/diff/16004/18004 File ...
11 years, 1 month ago (2009-11-02 21:20:23 UTC) #10
Mohamed Mansour
http://codereview.chromium.org/333010/diff/16004/18003 File chrome/browser/views/bookmark_bar_view.cc (right): http://codereview.chromium.org/333010/diff/16004/18003#newcode869 Line 869: AddChildView(other_bookmarked_button_); On 2009/11/02 21:20:23, jcampan wrote: > Why ...
11 years, 1 month ago (2009-11-03 00:18:05 UTC) #11
sky
http://codereview.chromium.org/333010/diff/20014/22010 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/20014/22010#newcode7 Line 7: #include "chrome/browser/view_ids.h" view_ids should be either before browser_view, ...
11 years, 1 month ago (2009-11-03 16:50:15 UTC) #12
Mohamed Mansour
I have fixed all the nits, some minor changes I have done. I went back ...
11 years, 1 month ago (2009-11-04 02:27:36 UTC) #13
sky
Almost there. You need to deal with selected_focused_view_ being removed. You can deal with this ...
11 years, 1 month ago (2009-11-06 21:46:02 UTC) #14
Mohamed Mansour
Sorry guys, I came back from my conference (was away from the computer for ~6 ...
11 years, 1 month ago (2009-11-15 00:08:24 UTC) #15
Mohamed Mansour
Please review patchset 8. Some comments. I needed to save the last focused view once ...
11 years ago (2009-12-01 04:01:17 UTC) #16
sky
http://codereview.chromium.org/333010/diff/37003/37004 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/37003/37004#newcode229 chrome/browser/views/accessible_toolbar_view.cc:229: if (selected_focused_view_ && !is_add) You should only do this ...
11 years ago (2009-12-02 22:54:19 UTC) #17
Mohamed Mansour
Thanks for the reviews, I followed your comments. Hopefully this is good! http://codereview.chromium.org/333010/diff/37003/37004 File chrome/browser/views/accessible_toolbar_view.cc ...
11 years ago (2009-12-02 23:44:55 UTC) #18
sky
Almost there. http://codereview.chromium.org/333010/diff/40014/39003 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/40014/39003#newcode112 chrome/browser/views/accessible_toolbar_view.cc:112: // Paranoia check, button should be initialized ...
11 years ago (2009-12-03 00:11:00 UTC) #19
Mohamed Mansour
Thanks Scott, I renamed some of the ones to HasFocus (as we discussed in IM) ...
11 years ago (2009-12-03 03:51:05 UTC) #20
sky
http://codereview.chromium.org/333010/diff/41004/41005 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/41004/41005#newcode112 chrome/browser/views/accessible_toolbar_view.cc:112: // Paranoia check, button should be initialized upon toolbar ...
11 years ago (2009-12-03 17:20:24 UTC) #21
Mohamed Mansour
Added the extra checks. http://codereview.chromium.org/333010/diff/41004/41005 File chrome/browser/views/accessible_toolbar_view.cc (right): http://codereview.chromium.org/333010/diff/41004/41005#newcode112 chrome/browser/views/accessible_toolbar_view.cc:112: // Paranoia check, button should ...
11 years ago (2009-12-03 18:48:15 UTC) #22
sky
11 years ago (2009-12-03 20:22:30 UTC) #23
LGTM

Powered by Google App Engine
This is Rietveld 408576698