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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 159713012: Don't track mouse events in HWNDMessageHandler when they are forwarded by the LegacyRenderWidgetHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 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: ui/views/win/hwnd_message_handler.cc
===================================================================
--- ui/views/win/hwnd_message_handler.cc (revision 249488)
+++ ui/views/win/hwnd_message_handler.cc (working copy)
@@ -788,7 +788,6 @@
}
void HWNDMessageHandler::SetCapture() {
- DCHECK(!HasCapture());
sky 2014/02/12 14:36:31 What did the call stack look like when you hit thi
::SetCapture(hwnd());
}
@@ -1296,7 +1295,8 @@
}
void HWNDMessageHandler::OnCaptureChanged(HWND window) {
- delegate_->HandleCaptureLost();
+ if (!HasCapture())
+ delegate_->HandleCaptureLost();
}
void HWNDMessageHandler::OnClose() {
@@ -1625,7 +1625,6 @@
// be WM_RBUTTONUP instead of WM_NCRBUTTONUP.
SetCapture();
}
-
MSG msg = { hwnd(), message, w_param, l_param, GetMessageTime(),
{ CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param) } };
ui::MouseEvent event(msg);

Powered by Google App Engine
This is Rietveld 408576698