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

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

Issue 2897143002: [CRD iOS] Ignore touch event when the touch point is out of the canvas in direct input mode (Closed)
Patch Set: 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/trackpad_input_strategy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ui/trackpad_input_strategy.cc
diff --git a/remoting/client/ui/trackpad_input_strategy.cc b/remoting/client/ui/trackpad_input_strategy.cc
index f2f5719eb9858db3149690378ea07dc848721d35..f136e57f63747e421764c88b1d2a79ecff0b1b11 100644
--- a/remoting/client/ui/trackpad_input_strategy.cc
+++ b/remoting/client/ui/trackpad_input_strategy.cc
@@ -54,10 +54,12 @@ bool TrackpadInputStrategy::HandlePan(const ViewMatrix::Vector2D& translation,
return true;
}
-void TrackpadInputStrategy::TrackTouchInput(
+bool TrackpadInputStrategy::TrackTouchInput(
const ViewMatrix::Point& touch_point,
const DesktopViewport& viewport) {
// Do nothing. The cursor position is independent of the touch position.
+ // |touch_point| is always valid.
+ return true;
}
ViewMatrix::Point TrackpadInputStrategy::GetCursorPosition() const {
« no previous file with comments | « remoting/client/ui/trackpad_input_strategy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698