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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // SyntheticGestureTargetBase: | 24 // SyntheticGestureTargetBase: |
25 void DispatchWebTouchEventToPlatform( | 25 void DispatchWebTouchEventToPlatform( |
26 const blink::WebTouchEvent& web_touch, | 26 const blink::WebTouchEvent& web_touch, |
27 const ui::LatencyInfo& latency_info) override; | 27 const ui::LatencyInfo& latency_info) override; |
28 void DispatchWebMouseWheelEventToPlatform( | 28 void DispatchWebMouseWheelEventToPlatform( |
29 const blink::WebMouseWheelEvent& web_wheel, | 29 const blink::WebMouseWheelEvent& web_wheel, |
30 const ui::LatencyInfo& latency_info) override; | 30 const ui::LatencyInfo& latency_info) override; |
31 void DispatchWebMouseEventToPlatform( | 31 void DispatchWebMouseEventToPlatform( |
32 const blink::WebMouseEvent& web_mouse, | 32 const blink::WebMouseEvent& web_mouse, |
33 const ui::LatencyInfo& latency_info) override; | 33 const ui::LatencyInfo& latency_info) override; |
| 34 void DispatchTouchpadGestureFlingStartToPlatform( |
| 35 const blink::WebGestureEvent& web_gesture, |
| 36 const ui::LatencyInfo& latency_info) override; |
34 | 37 |
35 // SyntheticGestureTarget: | 38 // SyntheticGestureTarget: |
36 SyntheticGestureParams::GestureSourceType | 39 SyntheticGestureParams::GestureSourceType |
37 GetDefaultSyntheticGestureSourceType() const override; | 40 GetDefaultSyntheticGestureSourceType() const override; |
38 | 41 |
39 float GetTouchSlopInDips() const override; | 42 float GetTouchSlopInDips() const override; |
40 | 43 |
41 float GetMinScalingSpanInDips() const override; | 44 float GetMinScalingSpanInDips() const override; |
42 | 45 |
43 private: | 46 private: |
44 aura::Window* GetWindow() const; | 47 aura::Window* GetWindow() const; |
45 | 48 |
46 // Synthetic located event's location and touch event's radius are in DIP and | 49 // Synthetic located event's location and touch event's radius are in DIP and |
47 // aura event dispatcher assumes input event is in device pixel and will apply | 50 // aura event dispatcher assumes input event is in device pixel and will apply |
48 // device scale factor to convert the input to DIP. So we need to use | 51 // device scale factor to convert the input to DIP. So we need to use |
49 // device_scale_factor to convert the input event from DIP to device pixel | 52 // device_scale_factor to convert the input event from DIP to device pixel |
50 // before dispatching it into platform. | 53 // before dispatching it into platform. |
51 float device_scale_factor_; | 54 float device_scale_factor_; |
52 | 55 |
53 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); | 56 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); |
54 }; | 57 }; |
55 | 58 |
56 } // namespace content | 59 } // namespace content |
57 | 60 |
58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | 61 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
OLD | NEW |