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 25 matching lines...) Expand all Loading... |
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(const InputEvent& event) OVERRIDE; |
44 | 44 |
45 virtual void OnSyntheticGestureCompleted( | 45 virtual void OnSyntheticGestureCompleted( |
46 SyntheticGesture::Result result) OVERRIDE; | 46 SyntheticGestureNew::Result result) OVERRIDE; |
47 | 47 |
48 virtual void SetNeedsFlush() OVERRIDE; | 48 virtual void SetNeedsFlush() OVERRIDE; |
49 | 49 |
50 virtual SyntheticGestureParams::GestureSourceType | 50 virtual SyntheticGestureParams::GestureSourceType |
51 GetDefaultSyntheticGestureSourceType() const OVERRIDE; | 51 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
52 virtual bool SupportsSyntheticGestureSourceType( | 52 virtual bool SupportsSyntheticGestureSourceType( |
53 SyntheticGestureParams::GestureSourceType gesture_source_type) const | 53 SyntheticGestureParams::GestureSourceType gesture_source_type) const |
54 OVERRIDE; | 54 OVERRIDE; |
55 | 55 |
56 protected: | 56 protected: |
57 RenderWidgetHostImpl* render_widget_host() { return host_; } | 57 RenderWidgetHostImpl* render_widget_host() { return host_; } |
58 | 58 |
59 private: | 59 private: |
60 RenderWidgetHostImpl* host_; | 60 RenderWidgetHostImpl* host_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); | 62 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
66 | 66 |
67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ | 67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
OLD | NEW |