Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: remoting/client/ui/input_strategy.h

Issue 2882653004: [CRD iOS] Injecting scroll events w/ fling animation (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/ui/gesture_interpreter.cc ('k') | remoting/ios/client_gestures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1dac5075037b84d797b3be434a157a1207295419 100644
--- a/remoting/client/ui/input_strategy.h
+++ b/remoting/client/ui/input_strategy.h
@@ -47,6 +47,13 @@ class InputStrategy {
// Returns the current cursor position.
virtual ViewMatrix::Point GetCursorPosition() const = 0;
+ // Maps a vector (or movement) in the surface coordinate to the vector to be
+ // used on the desktop. For example it can be used to map a scroll gesture
+ // on the screen to change in mouse wheel position.
+ virtual ViewMatrix::Vector2D 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
« no previous file with comments | « remoting/client/ui/gesture_interpreter.cc ('k') | remoting/ios/client_gestures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698