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

Unified Diff: chrome/browser/views/toolbar_view.h

Issue 2817022: Small tweaks to improve toolbar keyboard accessibility: Put focus rects... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/toolbar_view.h
===================================================================
--- chrome/browser/views/toolbar_view.h (revision 50343)
+++ chrome/browser/views/toolbar_view.h (working copy)
@@ -87,6 +87,9 @@
bool collapsed() const { return collapsed_; }
void SetCollapsed(bool val);
+ // Overridden from AccessibleToolbarView
+ virtual bool SetToolbarFocus(int view_storage_id, View* initial_focus);
+
// Overridden from Menu::BaseControllerDelegate:
virtual bool GetAcceleratorInfo(int id, menus::Accelerator* accel);
@@ -125,9 +128,10 @@
virtual void ThemeChanged();
protected:
- // Override this so that when the user presses F6 to rotate toolbar panes,
- // the location bar gets focus, not the first control in the toolbar.
+
+ // Overridden from AccessibleToolbarView
virtual views::View* GetDefaultFocusableChild();
+ virtual void RemoveToolbarFocus();
private:
// Returns the number of pixels above the location bar in non-normal display.

Powered by Google App Engine
This is Rietveld 408576698