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

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

Issue 703643004: Revert of Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/view_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 81ee3e90780721f4cec5dd9eb992b8a27fad7785..d05f1d8fd7bd2919ed6eab3ddf6ae5a9766d1215 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -429,7 +429,6 @@
}
bool RootView::OnMouseDragged(const ui::MouseEvent& event) {
- CHECK_EQ(ui::ET_MOUSE_DRAGGED, event.type());
if (mouse_pressed_handler_) {
SetMouseLocationAndFlags(event);
@@ -487,7 +486,6 @@
}
void RootView::OnMouseMoved(const ui::MouseEvent& event) {
- CHECK_EQ(ui::ET_MOUSE_MOVED, event.type());
View* v = GetEventHandlerForPoint(event.location());
// Find the first enabled view, or the existing move handler, whichever comes
// first. The check for the existing handler is because if a view becomes
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698