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. Include s details about the | |
43 * new size of the screen (not including system and soft input UI). | |
44 */ | |
45 void onSoftInputMethodVisibilityChanged(boolean inputMethodVisible, Rect inn erBounds); | |
Lambros
2015/10/29 23:39:16
Please document what the left/top of innerBounds a
joedow
2015/10/30 17:41:23
Done.
| |
46 | |
47 /** | |
41 * Whilst an animation is in progress, this method is called repeatedly unti l the animation is | 48 * 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. | 49 * cancelled. After this method returns, the DesktopView will schedule a rep aint. |
43 */ | 50 */ |
44 void processAnimation(); | 51 void processAnimation(); |
45 } | 52 } |
OLD | NEW |