blob: c0d50a0c4dae4be2bd3a817ad27bb3ee023212c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chromoting;
/**
* Callback interface to allow the TouchInputHandler to request actions on the DesktopView.
*/
public interface DesktopViewInterface {
/** Inject a mouse-move event, with optional button press/release. */
void injectMouseEvent(int x, int y, int button, boolean pressed);
/** Triggers a brief cursor animation to indicate a long-press event. */
void showLongPressFeedback();
/** Shows the action bar. */
void showActionBar();
/** Shows the software keyboard. */
void showKeyboard();
/**
* Informs the view that its transformation matrix (for rendering the remote desktop bitmap)
* has been changed by the TouchInputHandler, which requires repainting.
*/
void transformationChanged();
/**
* Starts or stops an animation. Whilst the animation is running, the DesktopView will
* periodically call TouchInputHandler.processAnimation() and repaint itself.
*/
void setAnimationEnabled(boolean enabled);
}
|