Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: chrome/browser/views/location_bar_view.cc

Issue 194041: Making the focus remembering across tab switch work. (Closed)
Patch Set: Fix for conflicts Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/location_bar_view.cc
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index 0723d165be9b04d1ed425c76f53edd666bb1591a..fb5ca9f3d501dc72064c44b2cfc7b2ccc96d45de 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -289,11 +289,8 @@ void LocationBarView::InvalidatePageActions() {
}
void LocationBarView::Focus() {
-#if defined(OS_WIN)
- ::SetFocus(location_entry_->m_hWnd);
-#else
- gtk_widget_grab_focus(location_entry_->widget());
-#endif
+ // Focus the location entry native view.
+ location_entry_->SetFocus();
}
void LocationBarView::SetProfile(Profile* profile) {
« no previous file with comments | « chrome/browser/views/frame/browser_frame_gtk.cc ('k') | chrome/browser/views/tab_contents/native_tab_contents_container_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698