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

Unified Diff: remoting/client/direct_input_strategy.h

Issue 2879743002: [CRD iOS] Hook the touch input feedback (Closed)
Patch Set: Just use ViewMatrix::Point. No more out-pointers... 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/direct_input_strategy.h
diff --git a/remoting/client/direct_input_strategy.h b/remoting/client/direct_input_strategy.h
index 83502db4861dcf485eb799ce8a7558f95f1c3c7e..154012be51946f54d3befde2c608448ce761e890 100644
--- a/remoting/client/direct_input_strategy.h
+++ b/remoting/client/direct_input_strategy.h
@@ -19,25 +19,26 @@ class DirectInputStrategy : public InputStrategy {
// InputStrategy overrides.
- void HandlePinch(float pivot_x,
- float pivot_y,
+ void HandlePinch(const ViewMatrix::Point& pivot,
float scale,
DesktopViewport* viewport) override;
- void HandlePan(float translation_x,
- float translation_y,
+ void HandlePan(const ViewMatrix::Vector2D& translation,
bool is_dragging_mode,
DesktopViewport* viewport) override;
- void FindCursorPositions(float touch_x,
- float touch_y,
- const DesktopViewport& viewport,
- float* cursor_x,
- float* cursor_y) override;
+ void TrackTouchInput(const ViewMatrix::Point& touch_point,
+ const DesktopViewport& viewport) override;
+
+ ViewMatrix::Point GetCursorPosition() const override;
+
+ float GetFeedbackRadius(InputFeedbackType type) const override;
bool IsCursorVisible() const override;
private:
+ ViewMatrix::Point cursor_position_{0.f, 0.f};
+
// TouchInputStrategy is neither copyable nor movable.
DirectInputStrategy(const DirectInputStrategy&) = delete;
DirectInputStrategy& operator=(const DirectInputStrategy&) = delete;

Powered by Google App Engine
This is Rietveld 408576698