summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/dom_ui.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 21:22:03 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 21:22:03 +0000
commit914c69f33f38bb472e5cbf8a3ab1cb3ee3a2948e (patch)
tree2d7fa294dc42a0dcb41242ae82f34c414418a1d5 /chrome/browser/dom_ui/dom_ui.h
parent389f493751d6edde8321e18ff8b9558a72598c9e (diff)
downloadchromium_src-914c69f33f38bb472e5cbf8a3ab1cb3ee3a2948e.zip
chromium_src-914c69f33f38bb472e5cbf8a3ab1cb3ee3a2948e.tar.gz
chromium_src-914c69f33f38bb472e5cbf8a3ab1cb3ee3a2948e.tar.bz2
The new history and download tab caused a regression where opening the NTP would not focus the location bar.
DOM UI now by default focus the page. The NTP one focus the location bar. Also removed some unused fields from the history and download DOM UI. BUG=8356 TEST=Open NTP, focus should be on location bar Review URL: http://codereview.chromium.org/39173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui.h')
-rw-r--r--chrome/browser/dom_ui/dom_ui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.h b/chrome/browser/dom_ui/dom_ui.h
index 35388bd..1d59bfc 100644
--- a/chrome/browser/dom_ui/dom_ui.h
+++ b/chrome/browser/dom_ui/dom_ui.h
@@ -50,8 +50,8 @@ class DOMUI {
virtual bool ShouldDisplayFavIcon() { return true; }
// No special bookmark bar behavior
virtual bool IsBookmarkBarAlwaysVisible() { return false; }
- // When NTP gets the initial focus, focus the URL bar.
- virtual void SetInitialFocus(bool reverse);
+ // Defaults to focusing the page.
+ virtual void SetInitialFocus() { contents_->Focus(); }
// Whether we want to display the page's URL.
virtual bool ShouldDisplayURL() { return true; }
// Hide the referrer.