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

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

Issue 250923004: Synthesize ctrl-wheel events on touchpad pinch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure scales never coalesce to 0 or Infinity 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: content/common/input/synthetic_web_input_event_builders.h
diff --git a/content/common/input/synthetic_web_input_event_builders.h b/content/common/input/synthetic_web_input_event_builders.h
index 5df4cd6109aa7809a0d7c8b74135fb30fee5c637..33442519005696f4789e9328c74a9020194a45cf 100644
--- a/content/common/input/synthetic_web_input_event_builders.h
+++ b/content/common/input/synthetic_web_input_event_builders.h
@@ -41,16 +41,18 @@ class CONTENT_EXPORT SyntheticWebGestureEventBuilder {
public:
static blink::WebGestureEvent Build(
blink::WebInputEvent::Type type,
- blink::WebGestureEvent::SourceDevice sourceDevice);
+ blink::WebGestureEvent::SourceDevice source_device);
static blink::WebGestureEvent BuildScrollBegin(float dx_hint,
float dy_hint);
static blink::WebGestureEvent BuildScrollUpdate(float dx,
float dy,
int modifiers);
- static blink::WebGestureEvent BuildPinchUpdate(float scale,
- float anchor_x,
- float anchor_y,
- int modifiers);
+ static blink::WebGestureEvent BuildPinchUpdate(
+ float scale,
+ float anchor_x,
+ float anchor_y,
+ int modifiers,
+ blink::WebGestureEvent::SourceDevice source_device);
static blink::WebGestureEvent BuildFling(
float velocity_x,
float velocity_y,

Powered by Google App Engine
This is Rietveld 408576698