diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 21:58:37 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 21:58:37 +0000 |
commit | 32d371758f777380486f9c8ef28b1faca37ab26c (patch) | |
tree | 5ec6a2ad2789c091b56d342ce042de7dab109246 | |
parent | 8399ebd7aefd0f4cc08b587d469046296fdbe212 (diff) | |
download | chromium_src-32d371758f777380486f9c8ef28b1faca37ab26c.zip chromium_src-32d371758f777380486f9c8ef28b1faca37ab26c.tar.gz chromium_src-32d371758f777380486f9c8ef28b1faca37ab26c.tar.bz2 |
Ensure that the underlying web_contents has focus in the external tab container
when it receives the SetInitialFocus notification from the client.
Review URL: http://codereview.chromium.org/102022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15104 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/external_tab_container.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index 5e4a78e..e89de09 100644 --- a/chrome/browser/external_tab_container.cc +++ b/chrome/browser/external_tab_container.cc @@ -386,6 +386,7 @@ void ExternalTabContainer::ProcessUnhandledAccelerator(const MSG& msg) { void ExternalTabContainer::SetInitialFocus(bool reverse) { DCHECK(tab_contents_); if (tab_contents_) { + static_cast<TabContents*>(tab_contents_)->Focus(); static_cast<TabContents*>(tab_contents_)->SetInitialFocus(reverse); } } |