OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
6 | 6 |
7 import android.view.MotionEvent; | 7 import android.view.MotionEvent; |
8 | 8 |
9 /** | 9 /** |
10 * This interface defines the methods used to customize input handling for | 10 * This interface defines the methods used to customize input handling for |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 * @param x The new x coordinate of the cursor. | 50 * @param x The new x coordinate of the cursor. |
51 * @param y The new y coordinate of the cursor. | 51 * @param y The new y coordinate of the cursor. |
52 */ | 52 */ |
53 void injectCursorMoveEvent(int x, int y); | 53 void injectCursorMoveEvent(int x, int y); |
54 | 54 |
55 /** | 55 /** |
56 * Returns the feedback animation type to use for a short press. | 56 * Returns the feedback animation type to use for a short press. |
57 * | 57 * |
58 * @return The feedback to display when a short press occurs. | 58 * @return The feedback to display when a short press occurs. |
59 */ | 59 */ |
60 DesktopView.InputFeedbackType getShortPressFeedbackType(); | 60 RenderStub.InputFeedbackType getShortPressFeedbackType(); |
61 | 61 |
62 /** | 62 /** |
63 * Returns the feedback animation type to use for a long press. | 63 * Returns the feedback animation type to use for a long press. |
64 * | 64 * |
65 * @return The feedback to display when a long press occurs. | 65 * @return The feedback to display when a long press occurs. |
66 */ | 66 */ |
67 DesktopView.InputFeedbackType getLongPressFeedbackType(); | 67 RenderStub.InputFeedbackType getLongPressFeedbackType(); |
68 | 68 |
69 /** | 69 /** |
70 * Indicates whether this input mode is an indirect input mode. Indirect in
put modes manipulate | 70 * Indicates whether this input mode is an indirect input mode. Indirect in
put modes manipulate |
71 * the cursor in a detached fashion (such as a trackpad) and direct input mo
des will update the | 71 * the cursor in a detached fashion (such as a trackpad) and direct input mo
des will update the |
72 * cursor/screen position to match the location of the touch point. | 72 * cursor/screen position to match the location of the touch point. |
73 * | 73 * |
74 * @return A boolean representing whether this input mode is indirect (true)
or direct (false). | 74 * @return A boolean representing whether this input mode is indirect (true)
or direct (false). |
75 */ | 75 */ |
76 boolean isIndirectInputMode(); | 76 boolean isIndirectInputMode(); |
77 } | 77 } |
OLD | NEW |