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

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

Issue 25268002: Make tapDown async. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 7 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
Index: content/browser/renderer_host/overscroll_controller.cc
diff --git a/content/browser/renderer_host/overscroll_controller.cc b/content/browser/renderer_host/overscroll_controller.cc
index f07efab61f4fe1504186974481be50128de69345..2bbd0330132cb22129848e16b6a09589981ecf08 100644
--- a/content/browser/renderer_host/overscroll_controller.cc
+++ b/content/browser/renderer_host/overscroll_controller.cc
@@ -4,6 +4,7 @@
#include "content/browser/renderer_host/overscroll_controller.h"
+#include "content/browser/renderer_host/input/gesture_event_filter.h"
#include "content/browser/renderer_host/overscroll_controller_delegate.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/public/browser/overscroll_configuration.h"
@@ -104,6 +105,7 @@ bool OverscrollController::WillDispatchEvent(
void OverscrollController::ReceivedEventACK(const WebKit::WebInputEvent& event,
bool processed) {
+ DCHECK(!GestureEventFilter::IsGestureEventTypeAsync(event.type));
if (processed) {
// If a scroll event is consumed by the page, i.e. some content on the page
// has been scrolled, then there is not going to be an overscroll gesture,

Powered by Google App Engine
This is Rietveld 408576698