| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 REMOTING_CLIENT_SIMULATED_TOUCH_INPUT_STRATEGY_H_ | 5 #ifndef REMOTING_CLIENT_SIMULATED_TOUCH_INPUT_STRATEGY_H_ |
| 6 #define REMOTING_CLIENT_SIMULATED_TOUCH_INPUT_STRATEGY_H_ | 6 #define REMOTING_CLIENT_SIMULATED_TOUCH_INPUT_STRATEGY_H_ |
| 7 | 7 |
| 8 #include "remoting/client/input_strategy.h" | 8 #include "remoting/client/input_strategy.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 void HandlePinch(float pivot_x, | 22 void HandlePinch(float pivot_x, |
| 23 float pivot_y, | 23 float pivot_y, |
| 24 float scale, | 24 float scale, |
| 25 DesktopViewport* viewport) override; | 25 DesktopViewport* viewport) override; |
| 26 | 26 |
| 27 void HandlePan(float translation_x, | 27 void HandlePan(float translation_x, |
| 28 float translation_y, | 28 float translation_y, |
| 29 bool is_dragging_mode, | 29 bool is_dragging_mode, |
| 30 DesktopViewport* viewport) override; | 30 DesktopViewport* viewport) override; |
| 31 | 31 |
| 32 void FindCursorPositions(float touch_x, | 32 void TrackTouchInput(float touch_x, |
| 33 float touch_y, | 33 float touch_y, |
| 34 const DesktopViewport& viewport, | 34 const DesktopViewport& viewport) override; |
| 35 float* cursor_x, | 35 |
| 36 float* cursor_y) override; | 36 void GetCursorPosition(float* cursor_x, float* cursor_y) const override; |
| 37 |
| 38 float GetFeedbackRadius(InputFeedbackType type) const override; |
| 37 | 39 |
| 38 bool IsCursorVisible() const override; | 40 bool IsCursorVisible() const override; |
| 39 | 41 |
| 40 private: | 42 private: |
| 43 float cursor_x_ = 0.f; |
| 44 float cursor_y_ = 0.f; |
| 45 |
| 41 // TouchInputStrategy is neither copyable nor movable. | 46 // TouchInputStrategy is neither copyable nor movable. |
| 42 DirectInputStrategy(const DirectInputStrategy&) = delete; | 47 DirectInputStrategy(const DirectInputStrategy&) = delete; |
| 43 DirectInputStrategy& operator=(const DirectInputStrategy&) = delete; | 48 DirectInputStrategy& operator=(const DirectInputStrategy&) = delete; |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace remoting | 51 } // namespace remoting |
| 47 #endif // REMOTING_CLIENT_SIMULATED_TOUCH_INPUT_STRATEGY_H_ | 52 #endif // REMOTING_CLIENT_SIMULATED_TOUCH_INPUT_STRATEGY_H_ |
| OLD | NEW |