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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 9 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 virtual void DispatchWebMouseWheelEventToPlatform( | 34 virtual void DispatchWebMouseWheelEventToPlatform( |
35 const blink::WebMouseWheelEvent& web_wheel, | 35 const blink::WebMouseWheelEvent& web_wheel, |
36 const ui::LatencyInfo& latency_info); | 36 const ui::LatencyInfo& latency_info); |
37 | 37 |
38 virtual void DispatchWebMouseEventToPlatform( | 38 virtual void DispatchWebMouseEventToPlatform( |
39 const blink::WebMouseEvent& web_mouse, | 39 const blink::WebMouseEvent& web_mouse, |
40 const ui::LatencyInfo& latency_info); | 40 const ui::LatencyInfo& latency_info); |
41 | 41 |
42 // SyntheticGestureTarget: | 42 // SyntheticGestureTarget: |
43 virtual void DispatchInputEventToPlatform(const InputEvent& event) OVERRIDE; | 43 virtual void DispatchInputEventToPlatform( |
| 44 const blink::WebInputEvent& event) OVERRIDE; |
44 | 45 |
45 virtual void OnSyntheticGestureCompleted( | 46 virtual void OnSyntheticGestureCompleted( |
46 SyntheticGesture::Result result) OVERRIDE; | 47 SyntheticGesture::Result result) OVERRIDE; |
47 | 48 |
48 virtual void SetNeedsFlush() OVERRIDE; | 49 virtual void SetNeedsFlush() OVERRIDE; |
49 | 50 |
50 virtual SyntheticGestureParams::GestureSourceType | 51 virtual SyntheticGestureParams::GestureSourceType |
51 GetDefaultSyntheticGestureSourceType() const OVERRIDE; | 52 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
52 virtual bool SupportsSyntheticGestureSourceType( | 53 virtual bool SupportsSyntheticGestureSourceType( |
53 SyntheticGestureParams::GestureSourceType gesture_source_type) const | 54 SyntheticGestureParams::GestureSourceType gesture_source_type) const |
54 OVERRIDE; | 55 OVERRIDE; |
55 | 56 |
56 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; | 57 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; |
57 | 58 |
58 virtual int GetTouchSlopInDips() const OVERRIDE; | 59 virtual int GetTouchSlopInDips() const OVERRIDE; |
59 | 60 |
60 protected: | 61 protected: |
61 RenderWidgetHostImpl* render_widget_host() const { return host_; } | 62 RenderWidgetHostImpl* render_widget_host() const { return host_; } |
62 | 63 |
63 private: | 64 private: |
64 RenderWidgetHostImpl* host_; | 65 RenderWidgetHostImpl* host_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); | 67 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace content | 70 } // namespace content |
70 | 71 |
71 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ | 72 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
OLD | NEW |