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

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

Issue 2879743002: [CRD iOS] Hook the touch input feedback (Closed)
Patch Set: Fix dependency and race condition 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/BUILD.gn ('k') | remoting/client/ui/direct_input_strategy.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.h
diff --git a/remoting/client/ui/direct_input_strategy.h b/remoting/client/ui/direct_input_strategy.h
index 3d289c2a833bc9cf0428a0bd71171b9accc261f6..aaa2b5a640a18a3174983e19745d837efdabcda2 100644
--- a/remoting/client/ui/direct_input_strategy.h
+++ b/remoting/client/ui/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;
« no previous file with comments | « remoting/client/ui/BUILD.gn ('k') | remoting/client/ui/direct_input_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698