Chromium Code Reviews| Index: remoting/client/ui/input_strategy.h |
| diff --git a/remoting/client/ui/input_strategy.h b/remoting/client/ui/input_strategy.h |
| index c8d38382691135bea3fb24ef04d9d126be586013..93abe8685df3c2d67f14acf6dc8104a7befdaf39 100644 |
| --- a/remoting/client/ui/input_strategy.h |
| +++ b/remoting/client/ui/input_strategy.h |
| @@ -47,6 +47,12 @@ class InputStrategy { |
| // Returns the current cursor position. |
| virtual ViewMatrix::Point GetCursorPosition() const = 0; |
| + // Maps a scroll vector in the surface coordinate to the vector to be used to |
| + // scroll the mouse wheel on the host. |
| + virtual ViewMatrix::Vector2D MapScrollVector( |
|
nicholss
2017/05/16 18:13:11
I would expect this function to be MapXtoY style.
Yuwei
2017/05/17 05:42:20
Done. Renamed to MapScreenVectorToDesktop
|
| + const ViewMatrix::Vector2D& delta, |
| + const DesktopViewport& viewport) const = 0; |
| + |
| // Returns the maximum radius of the feedback animation on the surface's |
| // coordinate for the given input type. The feedback will then be shown on the |
| // cursor positions returned by GetCursorPosition(). Return 0 if no feedback |