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

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

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/gesture_interpreter.cc ('k') | remoting/client/ui/trackpad_input_strategy.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 9bab1c383fb94f3cfc8f4a6a88aef339b7a0acb7..293ed0a626767cf27ec6204cb536cf3c1c06e3f2 100644
--- a/remoting/client/ui/input_strategy.h
+++ b/remoting/client/ui/input_strategy.h
@@ -47,7 +47,11 @@ class InputStrategy {
// Called when a touch input (which will end up injecting a mouse event at
// certain position in the host) is done at |touch_point|.
// The implementation should move the cursor to proper position.
- virtual void TrackTouchInput(const ViewMatrix::Point& touch_point,
+ //
+ // Returns true if |touch_point| is a valid input, false otherwise. If the
+ // input is not valid, the implementation should not change its cursor
+ // position.
+ virtual bool TrackTouchInput(const ViewMatrix::Point& touch_point,
const DesktopViewport& viewport) = 0;
// Returns the current cursor position.
« no previous file with comments | « remoting/client/ui/gesture_interpreter.cc ('k') | remoting/client/ui/trackpad_input_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698