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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void DispatchInputEventToPlatform( | 43 virtual void DispatchInputEventToPlatform( |
44 const blink::WebInputEvent& event) OVERRIDE; | 44 const blink::WebInputEvent& event) OVERRIDE; |
45 | 45 |
46 virtual void SetNeedsFlush() OVERRIDE; | 46 virtual void SetNeedsFlush() OVERRIDE; |
47 | 47 |
48 virtual SyntheticGestureParams::GestureSourceType | 48 virtual SyntheticGestureParams::GestureSourceType |
49 GetDefaultSyntheticGestureSourceType() const OVERRIDE; | 49 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
50 | 50 |
51 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; | 51 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; |
52 | 52 |
53 virtual int GetTouchSlopInDips() const OVERRIDE; | 53 virtual float GetTouchSlopInDips() const OVERRIDE; |
| 54 |
| 55 virtual float GetMinScalingSpanInDips() const OVERRIDE; |
54 | 56 |
55 protected: | 57 protected: |
56 RenderWidgetHostImpl* render_widget_host() const { return host_; } | 58 RenderWidgetHostImpl* render_widget_host() const { return host_; } |
57 | 59 |
58 private: | 60 private: |
59 bool PointIsWithinContents(int x, int y) const; | 61 bool PointIsWithinContents(int x, int y) const; |
60 | 62 |
61 RenderWidgetHostImpl* host_; | 63 RenderWidgetHostImpl* host_; |
62 | 64 |
63 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); | 65 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); |
64 }; | 66 }; |
65 | 67 |
66 } // namespace content | 68 } // namespace content |
67 | 69 |
68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ | 70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
OLD | NEW |