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

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
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

Powered by Google App Engine
This is Rietveld 408576698