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

Unified Diff: remoting/client/ui/direct_input_strategy.cc

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/direct_input_strategy.h ('k') | remoting/client/ui/fling_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ui/direct_input_strategy.cc
diff --git a/remoting/client/ui/direct_input_strategy.cc b/remoting/client/ui/direct_input_strategy.cc
index 4fa23527431cddf2b2d5b5ee5043f367110ffb3b..5159062c176021c57515c28162013dfc030bd379 100644
--- a/remoting/client/ui/direct_input_strategy.cc
+++ b/remoting/client/ui/direct_input_strategy.cc
@@ -50,6 +50,12 @@ ViewMatrix::Point DirectInputStrategy::GetCursorPosition() const {
return cursor_position_;
}
+ViewMatrix::Vector2D DirectInputStrategy::MapScreenVectorToDesktop(
+ const ViewMatrix::Vector2D& delta,
+ const DesktopViewport& viewport) const {
+ return viewport.GetTransformation().Invert().MapVector(delta);
+}
+
float DirectInputStrategy::GetFeedbackRadius(InputFeedbackType type) const {
switch (type) {
case InputFeedbackType::TAP_FEEDBACK:
« no previous file with comments | « remoting/client/ui/direct_input_strategy.h ('k') | remoting/client/ui/fling_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698