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
3 // found in the LICENSE file.
5 package org
.chromium
.chromoting
;
8 * Callback interface to allow the TouchInputHandler to request actions on the DesktopView.
10 public interface DesktopViewInterface
{
11 /** Injects a mouse-move event, with optional button press/release. */
12 void injectMouseEvent(int x
, int y
, int button
, boolean pressed
);
14 /** Injects a mouse-wheel event with delta values. */
15 void injectMouseWheelDeltaEvent(int deltaX
, int deltaY
);
17 /** Triggers a brief cursor animation to indicate a long-press event. */
18 void showLongPressFeedback();
20 /** Shows the action bar. */
23 /** Shows the software keyboard. */
27 * Informs the view that its transformation matrix (for rendering the remote desktop bitmap)
28 * has been changed by the TouchInputHandler, which requires repainting.
30 void transformationChanged();
33 * Starts or stops an animation. Whilst the animation is running, the DesktopView will
34 * periodically call TouchInputHandler.processAnimation() and repaint itself.
36 void setAnimationEnabled(boolean enabled
);