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

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

Issue 11361150: Suppress sending mousedown / mouseup when in fling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed checking GEF's queue back when it is empty in unit tests Created 8 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 | « content/browser/renderer_host/tap_suppression_controller.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/tap_suppression_controller_aura.cc
diff --git a/content/browser/renderer_host/tap_suppression_controller_aura.cc b/content/browser/renderer_host/tap_suppression_controller_aura.cc
index 8d3c39d79695dbce3d1f66451bc624b98b046192..0f99f5c28668678617ec04e12ef40d5d2b15997b 100644
--- a/content/browser/renderer_host/tap_suppression_controller_aura.cc
+++ b/content/browser/renderer_host/tap_suppression_controller_aura.cc
@@ -132,7 +132,7 @@ void TapSuppressionController::GestureFlingCancelAck(bool processed) {
TRACE_EVENT0("browser",
"TapSuppressionController::GestureFlingCancelAck");
mouse_down_timer_.Stop();
- render_widget_host_->ForwardMouseEvent(stashed_mouse_down_);
+ render_widget_host_->ForwardMouseEventImmediately(stashed_mouse_down_);
state_ = NOTHING;
} // Else waiting for the timer to release the mouse event.
break;
@@ -164,7 +164,7 @@ void TapSuppressionController::MouseDownTimerExpired() {
case MD_STASHED:
TRACE_EVENT0("browser",
"TapSuppressionController::MouseDownTimerExpired");
- render_widget_host_->ForwardMouseEvent(stashed_mouse_down_);
+ render_widget_host_->ForwardMouseEventImmediately(stashed_mouse_down_);
state_ = NOTHING;
break;
}
« no previous file with comments | « content/browser/renderer_host/tap_suppression_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698