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; | |
18 | |
19 class SyntheticGestureTargetAndroid : public SyntheticGestureTargetBase { | 17 class SyntheticGestureTargetAndroid : public SyntheticGestureTargetBase { |
20 public: | 18 public: |
21 SyntheticGestureTargetAndroid( | 19 SyntheticGestureTargetAndroid( |
22 RenderWidgetHostImpl* host, | 20 RenderWidgetHostImpl* host, |
23 base::android::ScopedJavaLocalRef<jobject> touch_event_synthesizer); | 21 base::android::ScopedJavaLocalRef<jobject> touch_event_synthesizer); |
24 ~SyntheticGestureTargetAndroid() override; | 22 ~SyntheticGestureTargetAndroid() override; |
25 | 23 |
26 // SyntheticGestureTargetBase: | 24 // SyntheticGestureTargetBase: |
27 void DispatchWebTouchEventToPlatform( | 25 void DispatchWebTouchEventToPlatform( |
28 const blink::WebTouchEvent& web_touch, | 26 const blink::WebTouchEvent& web_touch, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int64_t time_in_ms); | 59 int64_t time_in_ms); |
62 | 60 |
63 base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_; | 61 base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_; |
64 | 62 |
65 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAndroid); | 63 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAndroid); |
66 }; | 64 }; |
67 | 65 |
68 } // namespace content | 66 } // namespace content |
69 | 67 |
70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_
H_ | 68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_
H_ |
OLD | NEW |