| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_win.h" | 5 #include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_win.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_shutdown.h" | 7 #include "chrome/browser/browser_shutdown.h" |
| 8 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_win.h" | 8 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_win.h" |
| 9 #include "chrome/browser/ui/constrained_window_tab_helper.h" | 9 #include "chrome/browser/ui/constrained_window_tab_helper.h" |
| 10 #include "chrome/browser/ui/sad_tab_helper.h" | 10 #include "chrome/browser/ui/sad_tab_helper.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 return toplevel_widget ? toplevel_widget->GetFocusManager() : NULL; | 155 return toplevel_widget ? toplevel_widget->GetFocusManager() : NULL; |
| 156 } | 156 } |
| 157 | 157 |
| 158 void ChromeWebContentsViewDelegateWin::SetInitialFocus() { | 158 void ChromeWebContentsViewDelegateWin::SetInitialFocus() { |
| 159 if (web_contents_->FocusLocationBarByDefault()) { | 159 if (web_contents_->FocusLocationBarByDefault()) { |
| 160 web_contents_->SetFocusToLocationBar(false); | 160 web_contents_->SetFocusToLocationBar(false); |
| 161 } else { | 161 } else { |
| 162 web_contents_->GetView()->Focus(); | 162 web_contents_->GetView()->Focus(); |
| 163 } | 163 } |
| 164 } | 164 } |
| OLD | NEW |