diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 15:57:57 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 15:57:57 +0000 |
commit | 4bcefee86bc83dd026dbc49477cba7c914c4e881 (patch) | |
tree | cb8e2d086ef4dfecb6c7a6fadbfd05ce6fb4708e /chrome/browser/tab_contents | |
parent | 4e60c8de62c93da72ff8bd7ee5f3c4d10df2af6b (diff) | |
download | chromium_src-4bcefee86bc83dd026dbc49477cba7c914c4e881.zip chromium_src-4bcefee86bc83dd026dbc49477cba7c914c4e881.tar.gz chromium_src-4bcefee86bc83dd026dbc49477cba7c914c4e881.tar.bz2 |
Remove the Windows set focus call and bad-design browser call from the new tab
UI by plumbing through a delegate notification. This will also fix metrics for
the "focus the URL bar" command.
This also includes some OCD URL-formatting changes to the DOM UI that I noticed.
Review URL: http://codereview.chromium.org/19455
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_delegate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h index 599b64c..428f98e 100644 --- a/chrome/browser/tab_contents/tab_contents_delegate.h +++ b/chrome/browser/tab_contents/tab_contents_delegate.h @@ -143,6 +143,11 @@ class TabContentsDelegate : public PageNavigator { // If the delegate is hosting tabs externally. virtual bool IsExternalTabContainer() const { return false; } + + // Sets focus to the location bar or some other place that is appropriate. + // This is called when the tab wants to encourage user input, like for the + // new tab page. + virtual void SetFocusToLocationBar() {} }; #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |