| 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; |
| 8 |
| 7 /** | 9 /** |
| 8 * Callback interface to allow the TouchInputHandler to request actions on the D
esktopView. | 10 * Callback interface to allow the TouchInputHandler to request actions on the D
esktopView. |
| 9 */ | 11 */ |
| 10 public interface DesktopViewInterface { | 12 public interface DesktopViewInterface { |
| 11 /** Triggers a brief animation to indicate the existence and location of an
input event. */ | 13 /** Triggers a brief animation to indicate the existence and location of an
input event. */ |
| 12 void showInputFeedback(DesktopView.InputFeedbackType feedbackToShow); | 14 void showInputFeedback(DesktopView.InputFeedbackType feedbackToShow, Point p
os); |
| 13 | 15 |
| 14 /** Shows the action bar. */ | 16 /** Shows the action bar. */ |
| 15 void showActionBar(); | 17 void showActionBar(); |
| 16 | 18 |
| 17 /** Shows the software keyboard. */ | 19 /** Shows the software keyboard. */ |
| 18 void showKeyboard(); | 20 void showKeyboard(); |
| 19 | 21 |
| 20 /** | 22 /** |
| 21 * Informs the view that its transformation matrix (for rendering the remote
desktop bitmap) | 23 * Informs the view that its transformation matrix (for rendering the remote
desktop bitmap) |
| 22 * has been changed by the TouchInputHandler, which requires repainting. | 24 * has been changed by the TouchInputHandler, which requires repainting. |
| 23 */ | 25 */ |
| 24 void transformationChanged(); | 26 void transformationChanged(); |
| 25 | 27 |
| 26 /** | 28 /** |
| 27 * Starts or stops an animation. Whilst the animation is running, the Deskto
pView will | 29 * Starts or stops an animation. Whilst the animation is running, the Deskto
pView will |
| 28 * periodically call TouchInputHandler.processAnimation() and repaint itself
. | 30 * periodically call TouchInputHandler.processAnimation() and repaint itself
. |
| 29 */ | 31 */ |
| 30 void setAnimationEnabled(boolean enabled); | 32 void setAnimationEnabled(boolean enabled); |
| 31 } | 33 } |
| OLD | NEW |