| 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/input/synthetic_gesture_params.h" | 10 #include "content/common/input/synthetic_gesture_params.h" |
| 11 #include "ui/gfx/geometry/size.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 class WebInputEvent; | 14 class WebInputEvent; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // Interface between the synthetic gesture controller and the RenderWidgetHost. | 19 // Interface between the synthetic gesture controller and the RenderWidgetHost. |
| 19 class CONTENT_EXPORT SyntheticGestureTarget { | 20 class CONTENT_EXPORT SyntheticGestureTarget { |
| 20 public: | 21 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 // stopped moving. | 40 // stopped moving. |
| 40 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; | 41 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; |
| 41 | 42 |
| 42 // Returns the maximum number of DIPs a touch pointer can move without being | 43 // Returns the maximum number of DIPs a touch pointer can move without being |
| 43 // considered moving by the platform. | 44 // considered moving by the platform. |
| 44 virtual float GetTouchSlopInDips() const = 0; | 45 virtual float GetTouchSlopInDips() const = 0; |
| 45 | 46 |
| 46 // Returns the minimum number of DIPs two touch pointers have to be apart | 47 // Returns the minimum number of DIPs two touch pointers have to be apart |
| 47 // to perform a pinch-zoom. | 48 // to perform a pinch-zoom. |
| 48 virtual float GetMinScalingSpanInDips() const = 0; | 49 virtual float GetMinScalingSpanInDips() const = 0; |
| 50 |
| 51 virtual gfx::Size GetViewSize() const = 0; |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace content | 54 } // namespace content |
| 52 | 55 |
| 53 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 56 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| OLD | NEW |