Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 /** Shows the software keyboard. */ | 27 /** Shows the software keyboard. */ |
| 28 void showKeyboard(); | 28 void showKeyboard(); |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * 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) |
| 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 * Informs the view that the cursor has been moved by the TouchInputHandler, which requires | |
| 38 * repainting. | |
| 39 */ | |
| 40 void cursorMoved(); | |
| 41 | |
| 42 /** | |
| 43 * Informs the view that the cursor visibility has been changed (for differe nt input mode) by | |
| 44 * the TouchInputHandler, which requires repainting. | |
| 45 */ | |
| 46 void cursorVisibilityChanged(); | |
|
Lambros
2016/06/27 18:33:08
Do we need separate events for all the different t
| |
| 47 | |
| 48 /** | |
| 37 * Starts or stops an animation. Whilst the animation is running, the Deskto pView will | 49 * Starts or stops an animation. Whilst the animation is running, the Deskto pView will |
| 38 * periodically call TouchInputHandler.processAnimation() and repaint itself . | 50 * periodically call TouchInputHandler.processAnimation() and repaint itself . |
| 39 */ | 51 */ |
| 40 void setAnimationEnabled(boolean enabled); | 52 void setAnimationEnabled(boolean enabled); |
| 41 | 53 |
| 42 /** An {@link Event} which is triggered when the view is being painted. */ | 54 /** An {@link Event} which is triggered when the view is being painted. */ |
| 43 Event<PaintEventParameter> onPaint(); | 55 Event<PaintEventParameter> onPaint(); |
| 44 | 56 |
| 45 /** An {@link Event} which is triggered when the client size is changed. */ | 57 /** An {@link Event} which is triggered when the client size is changed. */ |
| 46 Event<SizeChangedEventParameter> onClientSizeChanged(); | 58 Event<SizeChangedEventParameter> onClientSizeChanged(); |
| 47 | 59 |
| 48 /** An {@link Event} which is triggered when the host size is changed. */ | 60 /** An {@link Event} which is triggered when the host size is changed. */ |
| 49 Event<SizeChangedEventParameter> onHostSizeChanged(); | 61 Event<SizeChangedEventParameter> onHostSizeChanged(); |
| 50 | 62 |
| 51 /** An {@link Event} which is triggered when user touchs the screen. */ | 63 /** An {@link Event} which is triggered when user touchs the screen. */ |
| 52 Event<TouchEventParameter> onTouch(); | 64 Event<TouchEventParameter> onTouch(); |
| 53 } | 65 } |
| OLD | NEW |