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.graphics.Point; | 7 import android.graphics.Point; |
8 | 8 |
| 9 import org.chromium.chromoting.jni.Client; |
| 10 |
9 /** | 11 /** |
10 * Callback interface to allow the TouchInputHandler to request actions on the D
esktopView. | 12 * Callback interface to allow the TouchInputHandler to request actions on the D
esktopView. |
11 */ | 13 */ |
12 public interface DesktopViewInterface { | 14 public interface DesktopViewInterface { |
| 15 /** |
| 16 * Initializes the instance. Implementations can assume this function will b
e called exactly |
| 17 * once after constructor but before other functions. |
| 18 */ |
| 19 void init(Desktop desktop, Client client); |
| 20 |
13 /** Triggers a brief animation to indicate the existence and location of an
input event. */ | 21 /** Triggers a brief animation to indicate the existence and location of an
input event. */ |
14 void showInputFeedback(DesktopView.InputFeedbackType feedbackToShow, Point p
os); | 22 void showInputFeedback(DesktopView.InputFeedbackType feedbackToShow, Point p
os); |
15 | 23 |
16 /** Shows the action bar. */ | 24 /** Shows the action bar. */ |
17 void showActionBar(); | 25 void showActionBar(); |
18 | 26 |
19 /** Shows the software keyboard. */ | 27 /** Shows the software keyboard. */ |
20 void showKeyboard(); | 28 void showKeyboard(); |
21 | 29 |
22 /** | 30 /** |
23 * Informs the view that its transformation matrix (for rendering the remote
desktop bitmap) | 31 * Informs the view that its transformation matrix (for rendering the remote
desktop bitmap) |
24 * has been changed by the TouchInputHandler, which requires repainting. | 32 * has been changed by the TouchInputHandler, which requires repainting. |
25 */ | 33 */ |
26 void transformationChanged(); | 34 void transformationChanged(); |
27 | 35 |
28 /** | 36 /** |
29 * Starts or stops an animation. Whilst the animation is running, the Deskto
pView will | 37 * Starts or stops an animation. Whilst the animation is running, the Deskto
pView will |
30 * periodically call TouchInputHandler.processAnimation() and repaint itself
. | 38 * periodically call TouchInputHandler.processAnimation() and repaint itself
. |
31 */ | 39 */ |
32 void setAnimationEnabled(boolean enabled); | 40 void setAnimationEnabled(boolean enabled); |
33 } | 41 } |
OLD | NEW |