summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 21:58:37 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 21:58:37 +0000
commit32d371758f777380486f9c8ef28b1faca37ab26c (patch)
tree5ec6a2ad2789c091b56d342ce042de7dab109246
parent8399ebd7aefd0f4cc08b587d469046296fdbe212 (diff)
downloadchromium_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.cc1
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);
}
}