OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_CLIENT_UI_INPUT_STRATEGY_H_ | 5 #ifndef REMOTING_CLIENT_INPUT_INPUT_STRATEGY_H_ |
6 #define REMOTING_CLIENT_UI_INPUT_STRATEGY_H_ | 6 #define REMOTING_CLIENT_INPUT_INPUT_STRATEGY_H_ |
7 | 7 |
8 #include "remoting/client/ui/view_matrix.h" | 8 #include "remoting/client/ui/view_matrix.h" |
9 | 9 |
10 namespace remoting { | 10 namespace remoting { |
11 | 11 |
12 class DesktopViewport; | 12 class DesktopViewport; |
13 | 13 |
14 // This is an interface used by GestureInterpreter to customize the way gestures | 14 // This is an interface used by GestureInterpreter to customize the way gestures |
15 // are handled. | 15 // are handled. |
16 class InputStrategy { | 16 class InputStrategy { |
Yuwei
2017/05/23 21:28:26
Could you name it GestureInputStrategy or whatever
nicholss
2017/05/23 22:01:23
That is phase3. I did not want to rename anything
| |
17 public: | 17 public: |
18 enum InputFeedbackType { | 18 enum InputFeedbackType { |
19 TAP_FEEDBACK, | 19 TAP_FEEDBACK, |
20 DRAG_FEEDBACK, | 20 DRAG_FEEDBACK, |
21 }; | 21 }; |
22 | 22 |
23 enum Gesture { | 23 enum Gesture { |
24 NONE, | 24 NONE, |
25 ZOOM, | 25 ZOOM, |
26 DRAG, | 26 DRAG, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 // cursor positions returned by GetCursorPosition(). Return 0 if no feedback | 65 // cursor positions returned by GetCursorPosition(). Return 0 if no feedback |
66 // should be shown. | 66 // should be shown. |
67 virtual float GetFeedbackRadius(InputFeedbackType type) const = 0; | 67 virtual float GetFeedbackRadius(InputFeedbackType type) const = 0; |
68 | 68 |
69 // Returns true if the input strategy maintains a visible cursor on the | 69 // Returns true if the input strategy maintains a visible cursor on the |
70 // desktop. | 70 // desktop. |
71 virtual bool IsCursorVisible() const = 0; | 71 virtual bool IsCursorVisible() const = 0; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace remoting | 74 } // namespace remoting |
75 #endif // REMOTING_CLIENT_UI_INPUT_STRATEGY_H_ | 75 #endif // REMOTING_CLIENT_INPUT_INPUT_STRATEGY_H_ |
OLD | NEW |