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

Unified Diff: views/controls/native/native_view_host_win.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
« no previous file with comments | « views/controls/native/native_view_host_gtk.cc ('k') | views/controls/native_control.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host_win.cc
===================================================================
--- views/controls/native/native_view_host_win.cc (revision 18286)
+++ views/controls/native/native_view_host_win.cc (working copy)
@@ -37,16 +37,9 @@
// Need to set the HWND's parent before changing its size to avoid flashing.
SetParent(host_->native_view(), host_->GetWidget()->GetNativeView());
host_->Layout();
-
- // Register with the focus manager so the associated view is focused when the
- // native control gets the focus.
- View* focus_view = host_->focus_view() ? host_->focus_view() : host_;
- FocusManager::InstallFocusSubclass(host_->native_view(), focus_view);
}
void NativeViewHostWin::NativeViewDetaching() {
- DCHECK(host_->native_view());
- FocusManager::UninstallFocusSubclass(host_->native_view());
installed_clip_ = false;
}
« no previous file with comments | « views/controls/native/native_view_host_gtk.cc ('k') | views/controls/native_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698