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

Unified Diff: chrome/browser/views/tab_contents/native_tab_contents_container_gtk.cc

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/tab_contents/native_tab_contents_container_gtk.cc
===================================================================
--- chrome/browser/views/tab_contents/native_tab_contents_container_gtk.cc (revision 18286)
+++ chrome/browser/views/tab_contents/native_tab_contents_container_gtk.cc (working copy)
@@ -112,6 +112,18 @@
return this;
}
+void NativeTabContentsContainerGtk::TabContentsFocused(
+ TabContents* tab_contents) {
+#if defined(OS_WIN)
+ views::FocusManager* focus_manager = GetFocusManager();
+ if (!focus_manager) {
+ NOTREACHED();
+ return;
+ }
+ focus_manager->SetFocusedView(this);
+#endif
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeTabContentsContainerGtk, views::View overrides:

Powered by Google App Engine
This is Rietveld 408576698