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

Unified Diff: trunk/src/content/common/input/web_input_event_traits.cc

Issue 252023005: Revert 266470 "Implement async touchmove dispatch during scroll" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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: trunk/src/content/common/input/web_input_event_traits.cc
===================================================================
--- trunk/src/content/common/input/web_input_event_traits.cc (revision 266575)
+++ trunk/src/content/common/input/web_input_event_traits.cc (working copy)
@@ -334,31 +334,28 @@
Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event);
}
-bool WebInputEventTraits::IgnoresAckDisposition(const WebInputEvent& event) {
- switch (event.type) {
+bool WebInputEventTraits::IgnoresAckDisposition(
+ blink::WebInputEvent::Type type) {
+ switch (type) {
+ case WebInputEvent::GestureTapDown:
+ case WebInputEvent::GestureShowPress:
+ case WebInputEvent::GestureTapCancel:
+ case WebInputEvent::GestureTap:
+ case WebInputEvent::GesturePinchBegin:
+ case WebInputEvent::GesturePinchEnd:
+ case WebInputEvent::GestureScrollBegin:
+ case WebInputEvent::GestureScrollEnd:
+ case WebInputEvent::TouchCancel:
case WebInputEvent::MouseDown:
case WebInputEvent::MouseUp:
case WebInputEvent::MouseEnter:
case WebInputEvent::MouseLeave:
case WebInputEvent::ContextMenu:
- case WebInputEvent::GestureScrollBegin:
- case WebInputEvent::GestureScrollEnd:
- case WebInputEvent::GestureShowPress:
- case WebInputEvent::GestureTap:
- case WebInputEvent::GestureTapUnconfirmed:
- case WebInputEvent::GestureTapDown:
- case WebInputEvent::GestureTapCancel:
- case WebInputEvent::GesturePinchBegin:
- case WebInputEvent::GesturePinchEnd:
- case WebInputEvent::TouchCancel:
return true;
- case WebInputEvent::TouchStart:
- case WebInputEvent::TouchMove:
- case WebInputEvent::TouchEnd:
- return !static_cast<const WebTouchEvent&>(event).cancelable;
default:
- return false;
+ break;
}
+ return false;
}
} // namespace content
« no previous file with comments | « trunk/src/content/common/input/web_input_event_traits.h ('k') | trunk/src/content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698