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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 93733005: Implement support for touch-action: pan-x/pan-y in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply jdduke CR feedback Created 7 years 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/common/input/synthetic_web_input_event_builders.cc
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc
index e30ecce8259c9d3a63156b417f12b5e1155cabe9..effeecb3d162b8f6d6b02225250bdeacabf1bcac 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -89,6 +89,16 @@ WebGestureEvent SyntheticWebGestureEventBuilder::Build(
return result;
}
+WebGestureEvent SyntheticWebGestureEventBuilder::BuildScrollBegin(
+ float dx_hint,
+ float dy_hint) {
+ WebGestureEvent result = Build(WebInputEvent::GestureScrollBegin,
+ WebGestureEvent::Touchscreen);
+ result.data.scrollBegin.deltaXHint = dx_hint;
+ result.data.scrollBegin.deltaYHint = dy_hint;
+ return result;
+}
+
WebGestureEvent SyntheticWebGestureEventBuilder::BuildScrollUpdate(
float dx,
float dy,

Powered by Google App Engine
This is Rietveld 408576698