OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 13 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class ContentViewCoreImpl; | 17 class ContentViewCoreImpl; |
18 | 18 |
19 class SyntheticGestureTargetAndroid : public SyntheticGestureTargetBase { | 19 class SyntheticGestureTargetAndroid : public SyntheticGestureTargetBase { |
20 public: | 20 public: |
21 SyntheticGestureTargetAndroid( | 21 SyntheticGestureTargetAndroid( |
22 RenderWidgetHostImpl* host, | 22 RenderWidgetHostImpl* host, |
23 base::android::ScopedJavaLocalRef<jobject> touch_event_synthesizer); | 23 base::android::ScopedJavaLocalRef<jobject> touch_event_synthesizer); |
24 ~SyntheticGestureTargetAndroid() override; | 24 ~SyntheticGestureTargetAndroid() override; |
25 | 25 |
26 static bool RegisterMotionEventSynthesizer(JNIEnv* env); | |
27 | |
28 // SyntheticGestureTargetBase: | 26 // SyntheticGestureTargetBase: |
29 void DispatchWebTouchEventToPlatform( | 27 void DispatchWebTouchEventToPlatform( |
30 const blink::WebTouchEvent& web_touch, | 28 const blink::WebTouchEvent& web_touch, |
31 const ui::LatencyInfo& latency_info) override; | 29 const ui::LatencyInfo& latency_info) override; |
32 void DispatchWebMouseWheelEventToPlatform( | 30 void DispatchWebMouseWheelEventToPlatform( |
33 const blink::WebMouseWheelEvent& web_wheel, | 31 const blink::WebMouseWheelEvent& web_wheel, |
34 const ui::LatencyInfo& latency_info) override; | 32 const ui::LatencyInfo& latency_info) override; |
35 void DispatchWebMouseEventToPlatform( | 33 void DispatchWebMouseEventToPlatform( |
36 const blink::WebMouseEvent& web_mouse, | 34 const blink::WebMouseEvent& web_mouse, |
37 const ui::LatencyInfo& latency_info) override; | 35 const ui::LatencyInfo& latency_info) override; |
(...skipping 25 matching lines...) Expand all Loading... |
63 int64_t time_in_ms); | 61 int64_t time_in_ms); |
64 | 62 |
65 base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_; | 63 base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_; |
66 | 64 |
67 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAndroid); | 65 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAndroid); |
68 }; | 66 }; |
69 | 67 |
70 } // namespace content | 68 } // namespace content |
71 | 69 |
72 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_
H_ | 70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_
H_ |
OLD | NEW |