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

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

Issue 2891603002: [CRD iOS] Trackpad Input Mode (Closed)
Patch Set: Fix 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/renderer_proxy.cc » ('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 1dac5075037b84d797b3be434a157a1207295419..9bab1c383fb94f3cfc8f4a6a88aef339b7a0acb7 100644
--- a/remoting/client/ui/input_strategy.h
+++ b/remoting/client/ui/input_strategy.h
@@ -17,25 +17,31 @@ class InputStrategy {
public:
enum InputFeedbackType {
TAP_FEEDBACK,
- LONG_PRESS_FEEDBACK,
+ DRAG_FEEDBACK,
+ };
+
+ enum Gesture {
+ NONE,
+ ZOOM,
+ DRAG,
};
virtual ~InputStrategy() {}
- // Called when the GestureInterpreter receives a pinch gesture. The
+ // Called when the GestureInterpreter receives a zoom gesture. The
// implementation is responsible for modifying the viewport and observing the
// change.
- virtual void HandlePinch(const ViewMatrix::Point& pivot,
- float scale,
- DesktopViewport* viewport) = 0;
+ virtual void HandleZoom(const ViewMatrix::Point& pivot,
+ float scale,
+ DesktopViewport* viewport) = 0;
// Called when the GestureInterpreter receives a pan gesture. The
// implementation is responsible for modifying the viewport and observing the
// change.
- // is_dragging_mode: true if the user is trying to drag something while
- // panning on the screen.
- virtual void HandlePan(const ViewMatrix::Vector2D& translation,
- bool is_dragging_mode,
+ // simultaneous_gesture: Gesture that is simultaneously in progress.
+ // Returns true if this changes the cursor position.
+ virtual bool HandlePan(const ViewMatrix::Vector2D& translation,
+ Gesture simultaneous_gesture,
DesktopViewport* viewport) = 0;
// Called when a touch input (which will end up injecting a mouse event at
« no previous file with comments | « remoting/client/ui/gesture_interpreter.cc ('k') | remoting/client/ui/renderer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698