diff options
Diffstat (limited to 'chromium/content/browser/renderer_host/input/synthetic_gesture_target_android.h')
-rw-r--r-- | chromium/content/browser/renderer_host/input/synthetic_gesture_target_android.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/chromium/content/browser/renderer_host/input/synthetic_gesture_target_android.h b/chromium/content/browser/renderer_host/input/synthetic_gesture_target_android.h index b8c5a5d8142..dcf146ffb92 100644 --- a/chromium/content/browser/renderer_host/input/synthetic_gesture_target_android.h +++ b/chromium/content/browser/renderer_host/input/synthetic_gesture_target_android.h @@ -22,18 +22,24 @@ class SyntheticGestureTargetAndroid : public SyntheticGestureTargetBase { static bool RegisterTouchEventSynthesizer(JNIEnv* env); + // SyntheticGestureTargetBase: virtual void DispatchWebTouchEventToPlatform( const blink::WebTouchEvent& web_touch, const ui::LatencyInfo& latency_info) OVERRIDE; + virtual void DispatchWebMouseWheelEventToPlatform( + const blink::WebMouseWheelEvent& web_wheel, + const ui::LatencyInfo& latency_info) OVERRIDE; + virtual void DispatchWebMouseEventToPlatform( + const blink::WebMouseEvent& web_mouse, + const ui::LatencyInfo& latency_info) OVERRIDE; // SyntheticGestureTarget: virtual SyntheticGestureParams::GestureSourceType GetDefaultSyntheticGestureSourceType() const OVERRIDE; - virtual bool SupportsSyntheticGestureSourceType( - SyntheticGestureParams::GestureSourceType gesture_source_type) const - OVERRIDE; - virtual int GetTouchSlopInDips() const OVERRIDE; + virtual float GetTouchSlopInDips() const OVERRIDE; + + virtual float GetMinScalingSpanInDips() const OVERRIDE; private: // Enum values below need to be kept in sync with TouchEventSynthesizer.java @@ -46,7 +52,8 @@ class SyntheticGestureTargetAndroid : public SyntheticGestureTargetBase { }; void TouchSetPointer(JNIEnv* env, int index, int x, int y, int id); - void TouchInject(JNIEnv* env, Action action, int pointer_count); + void TouchInject( + JNIEnv* env, Action action, int pointer_count, int64 time_in_ms); base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_; |