summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/compact_navigation_bar.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 19:09:38 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 19:09:38 +0000
commitdfe9d1d2de7fd8d244599b79a22898cce8df7c81 (patch)
treebbc7eadc945e6b217b922f875092fd2ee7a89cba /chrome/browser/chromeos/compact_navigation_bar.h
parenta9da4c46a446de3912465fb58339f6b16725dc53 (diff)
downloadchromium_src-dfe9d1d2de7fd8d244599b79a22898cce8df7c81.zip
chromium_src-dfe9d1d2de7fd8d244599b79a22898cce8df7c81.tar.gz
chromium_src-dfe9d1d2de7fd8d244599b79a22898cce8df7c81.tar.bz2
Focus fix for compact navigation bar.
* Make focusable so that focus can be moved to compact navigation bar by tab. * Ctrl-L should focus the compact navigation bar (and select all texts) BUG=51 (chrome-os) TEST=switch to compact navigation bar mode, hit tab or ctrl-L to move focus to compact navigation bar. Review URL: http://codereview.chromium.org/384079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31808 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/compact_navigation_bar.h')
-rw-r--r--chrome/browser/chromeos/compact_navigation_bar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/compact_navigation_bar.h b/chrome/browser/chromeos/compact_navigation_bar.h
index aa4b86a..7a689e9 100644
--- a/chrome/browser/chromeos/compact_navigation_bar.h
+++ b/chrome/browser/chromeos/compact_navigation_bar.h
@@ -40,10 +40,14 @@ class CompactNavigationBar : public views::View,
// widget.
void Init();
+ // Set focus to the location entry in the compact navigation bar.
+ void FocusLocation();
+
// views::View overrides.
virtual gfx::Size GetPreferredSize();
virtual void Layout();
virtual void Paint(gfx::Canvas* canvas);
+ virtual void Focus();
private:
// views::ButtonListener implementation.