| 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; | 9 import org.chromium.chromoting.jni.Client; |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 * has been changed by the TouchInputHandler, which requires repainting. | 32 * has been changed by the TouchInputHandler, which requires repainting. |
| 33 */ | 33 */ |
| 34 void transformationChanged(); | 34 void transformationChanged(); |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * 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 |
| 38 * periodically call TouchInputHandler.processAnimation() and repaint itself
. | 38 * periodically call TouchInputHandler.processAnimation() and repaint itself
. |
| 39 */ | 39 */ |
| 40 void setAnimationEnabled(boolean enabled); | 40 void setAnimationEnabled(boolean enabled); |
| 41 | 41 |
| 42 /** An {@link Event} which is triggered when the view is being painted. */ | 42 /** |
| 43 * An {@link Event} which is triggered when the view is being painted. Addin
g handlers to this |
| 44 * event causes painting to be triggered continuously until they are all rem
oved. |
| 45 */ |
| 43 Event<PaintEventParameter> onPaint(); | 46 Event<PaintEventParameter> onPaint(); |
| 44 | 47 |
| 45 /** An {@link Event} which is triggered when the client size is changed. */ | 48 /** An {@link Event} which is triggered when the client size is changed. */ |
| 46 Event<SizeChangedEventParameter> onClientSizeChanged(); | 49 Event<SizeChangedEventParameter> onClientSizeChanged(); |
| 47 | 50 |
| 48 /** An {@link Event} which is triggered when the host size is changed. */ | 51 /** An {@link Event} which is triggered when the host size is changed. */ |
| 49 Event<SizeChangedEventParameter> onHostSizeChanged(); | 52 Event<SizeChangedEventParameter> onHostSizeChanged(); |
| 50 | 53 |
| 51 /** An {@link Event} which is triggered when user touchs the screen. */ | 54 /** An {@link Event} which is triggered when user touchs the screen. */ |
| 52 Event<TouchEventParameter> onTouch(); | 55 Event<TouchEventParameter> onTouch(); |
| 53 } | 56 } |
| OLD | NEW |