OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.content.Context; | 7 import android.content.Context; |
8 import android.graphics.Point; | 8 import android.graphics.PointF; |
9 import android.text.InputType; | 9 import android.text.InputType; |
10 import android.view.MotionEvent; | 10 import android.view.MotionEvent; |
11 import android.view.SurfaceView; | 11 import android.view.SurfaceView; |
12 import android.view.inputmethod.EditorInfo; | 12 import android.view.inputmethod.EditorInfo; |
13 import android.view.inputmethod.InputConnection; | 13 import android.view.inputmethod.InputConnection; |
14 import android.view.inputmethod.InputMethodManager; | 14 import android.view.inputmethod.InputMethodManager; |
15 | 15 |
16 import org.chromium.chromoting.jni.Client; | 16 import org.chromium.chromoting.jni.Client; |
17 | 17 |
18 /** | 18 /** |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 case LARGE_ANIMATION: | 133 case LARGE_ANIMATION: |
134 return mLargeFeedbackPixelRadius; | 134 return mLargeFeedbackPixelRadius; |
135 default: | 135 default: |
136 // Unreachable, but required by Google Java style and findbugs. | 136 // Unreachable, but required by Google Java style and findbugs. |
137 assert false : "Unreached"; | 137 assert false : "Unreached"; |
138 return 0.0f; | 138 return 0.0f; |
139 } | 139 } |
140 } | 140 } |
141 | 141 |
142 /** Triggers a brief animation to indicate the existence and location of an
input event. */ | 142 /** Triggers a brief animation to indicate the existence and location of an
input event. */ |
143 public abstract void showInputFeedback(InputFeedbackType feedbackToShow, Poi
nt pos); | 143 public abstract void showInputFeedback(InputFeedbackType feedbackToShow, Poi
ntF pos); |
144 | 144 |
145 /** | 145 /** |
146 * Informs the view that its transformation matrix (for rendering the remote
desktop bitmap) | 146 * Informs the view that its transformation matrix (for rendering the remote
desktop bitmap) |
147 * has been changed by the TouchInputHandler, which requires repainting. | 147 * has been changed by the TouchInputHandler, which requires repainting. |
148 */ | 148 */ |
149 public abstract void transformationChanged(); | 149 public abstract void transformationChanged(); |
150 | 150 |
151 /** | 151 /** |
152 * Informs the view that the cursor has been moved by the TouchInputHandler,
which requires | 152 * Informs the view that the cursor has been moved by the TouchInputHandler,
which requires |
153 * repainting. | 153 * repainting. |
154 */ | 154 */ |
155 public abstract void cursorMoved(); | 155 public abstract void cursorMoved(); |
156 | 156 |
157 /** | 157 /** |
158 * Informs the view that the cursor visibility has been changed (for differe
nt input mode) by | 158 * Informs the view that the cursor visibility has been changed (for differe
nt input mode) by |
159 * the TouchInputHandler, which requires repainting. | 159 * the TouchInputHandler, which requires repainting. |
160 */ | 160 */ |
161 public abstract void cursorVisibilityChanged(); | 161 public abstract void cursorVisibilityChanged(); |
162 | 162 |
163 /** | 163 /** |
164 * Starts or stops an animation. Whilst the animation is running, the Deskto
pView will | 164 * Starts or stops an animation. Whilst the animation is running, the Deskto
pView will |
165 * periodically call TouchInputHandler.processAnimation() and repaint itself
. | 165 * periodically call TouchInputHandler.processAnimation() and repaint itself
. |
166 */ | 166 */ |
167 public abstract void setAnimationEnabled(boolean enabled); | 167 public abstract void setAnimationEnabled(boolean enabled); |
168 } | 168 } |
OLD | NEW |