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

Unified Diff: ui/views/widget/desktop_root_window_host_win.cc

Issue 10951033: Plumb ClearNativeFocus to DesktopRootWindowHostWin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of FocusNativeView Created 8 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
« no previous file with comments | « ui/views/widget/desktop_root_window_host_win.h ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_root_window_host_win.cc
===================================================================
--- ui/views/widget/desktop_root_window_host_win.cc (revision 157553)
+++ ui/views/widget/desktop_root_window_host_win.cc (working copy)
@@ -206,6 +206,10 @@
message_handler_->SetTitle(title);
}
+void DesktopRootWindowHostWin::ClearNativeFocus() {
+ message_handler_->ClearNativeFocus();
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopRootWindowHostWin, RootWindowHost implementation:
@@ -510,6 +514,8 @@
}
bool DesktopRootWindowHostWin::HandleMouseEvent(const ui::MouseEvent& event) {
+ if (event.flags() & ui::EF_IS_NON_CLIENT)
+ return false;
return root_window_host_delegate_->OnHostMouseEvent(
const_cast<ui::MouseEvent*>(&event));
}
« no previous file with comments | « ui/views/widget/desktop_root_window_host_win.h ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698