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.Rect; |
7 import android.view.MotionEvent; | 8 import android.view.MotionEvent; |
8 | 9 |
9 /** | 10 /** |
10 * This interface allows multiple styles of touchscreen UI to be implemented and
dynamically | 11 * This interface allows multiple styles of touchscreen UI to be implemented and
dynamically |
11 * switched. The DesktopView passes the low-level touchscreen events and other e
vents via this | 12 * switched. The DesktopView passes the low-level touchscreen events and other e
vents via this |
12 * interface. The implementation recognizes and processes the touchscreen gestur
es, and then | 13 * interface. The implementation recognizes and processes the touchscreen gestur
es, and then |
13 * performs actions on the DesktopView (such as panning/zooming the display, inj
ecting input, or | 14 * performs actions on the DesktopView (such as panning/zooming the display, inj
ecting input, or |
14 * showing/hiding UI elements). All methods are called on the main UI thread. | 15 * showing/hiding UI elements). All methods are called on the main UI thread. |
15 */ | 16 */ |
16 public interface TouchInputHandler { | 17 public interface TouchInputHandler { |
(...skipping 14 matching lines...) Expand all Loading... |
31 */ | 32 */ |
32 void onClientSizeChanged(int width, int height); | 33 void onClientSizeChanged(int width, int height); |
33 | 34 |
34 /** | 35 /** |
35 * Called when the host screen size is changed. The caller will handle repai
nting after this | 36 * Called when the host screen size is changed. The caller will handle repai
nting after this |
36 * method returns. | 37 * method returns. |
37 */ | 38 */ |
38 void onHostSizeChanged(int width, int height); | 39 void onHostSizeChanged(int width, int height); |
39 | 40 |
40 /** | 41 /** |
| 42 * Called when the visibility of the soft input method has changed. |
| 43 * The innerBounds parameter describes the amount of space used by SystemUI
along each edge of |
| 44 * the screen. The status bar is typically shown along the top, soft input
UI is generally |
| 45 * shown at the bottom. The navigation bar is shown along the bottom for ta
blets and along the |
| 46 * right side for phones in landscape mode (it shown at the bottom in portra
it mode). |
| 47 */ |
| 48 void onSoftInputMethodVisibilityChanged(boolean inputMethodVisible, Rect inn
erBounds); |
| 49 |
| 50 /** |
41 * Whilst an animation is in progress, this method is called repeatedly unti
l the animation is | 51 * Whilst an animation is in progress, this method is called repeatedly unti
l the animation is |
42 * cancelled. After this method returns, the DesktopView will schedule a rep
aint. | 52 * cancelled. After this method returns, the DesktopView will schedule a rep
aint. |
43 */ | 53 */ |
44 void processAnimation(); | 54 void processAnimation(); |
45 } | 55 } |
OLD | NEW |