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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 10825233: OnPointerMessage no longer nukes the active focus (Win8/Desktop). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed OnPointerEvent entirely. 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 | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 955c49c9a0da3d9f6b4726767d663347c3aeb320..e850512544cf2ca7b15fee62e33676cf691bdf94 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -2681,32 +2681,6 @@ LRESULT RenderWidgetHostViewWin::OnParentNotify(UINT message, WPARAM wparam,
return 0;
}
-LRESULT RenderWidgetHostViewWin::OnPointerMessage(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled) {
- TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnPointerMessage");
- POINT point = {0};
-
- point.x = GET_X_LPARAM(lparam);
- point.y = GET_Y_LPARAM(lparam);
- ScreenToClient(&point);
-
- lparam = MAKELPARAM(point.x, point.y);
-
- if (message == WM_POINTERDOWN) {
- if (!base::win::IsMetroProcess()) {
- pointer_down_context_ = true;
- SetFocus();
- received_focus_change_after_pointer_down_ = false;
- MessageLoop::current()->PostDelayedTask(FROM_HERE,
- base::Bind(&RenderWidgetHostViewWin::ResetPointerDownContext,
- weak_factory_.GetWeakPtr()),
- base::TimeDelta::FromMilliseconds(kPointerDownContextResetDelay));
- }
- }
- handled = FALSE;
- return 0;
-}
-
void RenderWidgetHostViewWin::OnFinalMessage(HWND window) {
TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnFinalMessage");
// When the render widget host is being destroyed, it ends up calling
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698