summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 16:00:15 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 16:00:15 +0000
commit54c89ef568ae71304e7804c75a44fe2f16f859f2 (patch)
tree8c0ea8e87b3bb56bd9e601f489f71ee5501ae909
parent27b1a6024424c7d5da7c6ca13c5c01d440ea4cff (diff)
downloadchromium_src-54c89ef568ae71304e7804c75a44fe2f16f859f2.zip
chromium_src-54c89ef568ae71304e7804c75a44fe2f16f859f2.tar.gz
chromium_src-54c89ef568ae71304e7804c75a44fe2f16f859f2.tar.bz2
More focus fixing.
Review URL: http://codereview.chromium.org/99262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15055 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/tab_contents/tab_contents_view_mac.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index d9a3ada4..cb4d8924 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -107,9 +107,10 @@ void TabContentsViewMac::Focus() {
}
void TabContentsViewMac::SetInitialFocus() {
- // TODO(port): Set focus in the else case correctly.
if (web_contents()->FocusLocationBarByDefault())
web_contents()->delegate()->SetFocusToLocationBar();
+ else
+ [[cocoa_view_.get() window] makeFirstResponder:GetContentNativeView()];
}
void TabContentsViewMac::StoreFocus() {