diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-14 20:20:35 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-14 20:20:35 +0000 |
commit | 2be2c01334383d74703dc88ecb67fae96a9124f9 (patch) | |
tree | 33b49e76db9830e974d235047ee940c0eecacdd4 /chrome/browser/renderer_host | |
parent | 9c1a794e4b6c9d3ffca49889958ff381ecb82e32 (diff) | |
download | chromium_src-2be2c01334383d74703dc88ecb67fae96a9124f9.zip chromium_src-2be2c01334383d74703dc88ecb67fae96a9124f9.tar.gz chromium_src-2be2c01334383d74703dc88ecb67fae96a9124f9.tar.bz2 |
This CL makes the focus remembered across tab switches for Chrome Linux with toolkit views.
It also contains clean-ups and implementation of different minor focus related things.
BUG=None
TEST=Open several tabs. Focus the location bar for some tabs, the page for others. Make sure that when switching between tabs the focus is restored to the last focused place (location bar or page) for each tab.
Also test that deactivating/reactivating the browser window still restores focus properly.
Review URL: http://codereview.chromium.org/194041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_gtk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc index adc109f..83c28b7 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc @@ -148,7 +148,7 @@ class RenderWidgetHostViewGtkWidget { } host_view->ShowCurrentCursor(); - host_view->GetRenderWidgetHost()->Focus(); + host_view->GetRenderWidgetHost()->GotFocus(); // The only way to enable a GtkIMContext object is to call its focus in // handler. |