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

Unified Diff: remoting/client/direct_input_strategy.h

Issue 2879743002: [CRD iOS] Hook the touch input feedback (Closed)
Patch Set: Use the ui task poster 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..706847f601aba1ca4794b96364a5177a31445d70 100644
--- a/remoting/client/direct_input_strategy.h
+++ b/remoting/client/direct_input_strategy.h
@@ -29,15 +29,20 @@ class DirectInputStrategy : public InputStrategy {
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(float touch_x,
+ float touch_y,
+ const DesktopViewport& viewport) override;
+
+ void GetCursorPosition(float* cursor_x, float* cursor_y) const override;
+
+ float GetFeedbackRadius(InputFeedbackType type) const override;
bool IsCursorVisible() const override;
private:
+ float cursor_x_ = 0.f;
+ float cursor_y_ = 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