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

Unified Diff: content/browser/renderer_host/input/gesture_event_queue.cc

Issue 591233002: [exp] Browser-side fling in aura. Base URL: https://chromium.googlesource.com/chromium/src.git@fling-curve-config-remove
Patch Set: self-nits Created 6 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/gesture_event_queue.cc
diff --git a/content/browser/renderer_host/input/gesture_event_queue.cc b/content/browser/renderer_host/input/gesture_event_queue.cc
index b16923be17f7234c5e4d69ceb04979253800eca9..5ed87b850a3da059bded1ad057f038406601c70a 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.cc
+++ b/content/browser/renderer_host/input/gesture_event_queue.cc
@@ -143,6 +143,7 @@ bool GestureEventQueue::ShouldForwardForCoalescing(
break;
case WebInputEvent::GesturePinchUpdate:
case WebInputEvent::GestureScrollUpdate:
+ case WebInputEvent::GestureScrollUpdateWithoutPropagation:
MergeOrInsertScrollAndPinchEvent(gesture_event);
return ShouldHandleEventNow();
default:
@@ -344,15 +345,19 @@ bool GestureEventQueue::ShouldTryMerging(
event_in_queue.event.timeStampSeconds)
<< "Event time not monotonic?\n";
return (event_in_queue.event.type == WebInputEvent::GestureScrollUpdate ||
- event_in_queue.event.type == WebInputEvent::GesturePinchUpdate) &&
- event_in_queue.event.modifiers == new_event.event.modifiers &&
- event_in_queue.event.sourceDevice == new_event.event.sourceDevice;
+ event_in_queue.event.type ==
+ WebInputEvent::GestureScrollUpdateWithoutPropagation ||
+ event_in_queue.event.type == WebInputEvent::GesturePinchUpdate) &&
+ event_in_queue.event.modifiers == new_event.event.modifiers &&
+ event_in_queue.event.sourceDevice == new_event.event.sourceDevice;
}
gfx::Transform GestureEventQueue::GetTransformForEvent(
const GestureEventWithLatencyInfo& gesture_event) const {
gfx::Transform gesture_transform;
- if (gesture_event.event.type == WebInputEvent::GestureScrollUpdate) {
+ if (gesture_event.event.type == WebInputEvent::GestureScrollUpdate ||
+ gesture_event.event.type ==
+ WebInputEvent::GestureScrollUpdateWithoutPropagation) {
gesture_transform.Translate(gesture_event.event.data.scrollUpdate.deltaX,
gesture_event.event.data.scrollUpdate.deltaY);
} else if (gesture_event.event.type == WebInputEvent::GesturePinchUpdate) {
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698