| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright 2016 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. | 
|  | 4 | 
|  | 5 package org.chromium.chromoting; | 
|  | 6 | 
|  | 7 import android.graphics.Matrix; | 
|  | 8 import android.graphics.PointF; | 
|  | 9 | 
|  | 10 /** | 
|  | 11  * Interface with a set of functions to control the behavior of the remote host 
    renderer. | 
|  | 12  */ | 
|  | 13 public interface RenderStub { | 
|  | 14     /** Used to define the animation feedback shown when a user touches the scre
    en. */ | 
|  | 15     enum InputFeedbackType { | 
|  | 16         NONE, | 
|  | 17         SHORT_TOUCH_ANIMATION, | 
|  | 18         LONG_TOUCH_ANIMATION, | 
|  | 19         LONG_TRACKPAD_ANIMATION | 
|  | 20     } | 
|  | 21 | 
|  | 22     /** | 
|  | 23      * Resets the stub with |view|. The stub should avoid holding strong referen
    ce to |view|. | 
|  | 24      */ | 
|  | 25     void setDesktopView(DesktopView view); | 
|  | 26 | 
|  | 27     /** Triggers a brief animation to indicate the existence and location of an 
    input event. */ | 
|  | 28     void showInputFeedback(InputFeedbackType feedbackToShow, PointF pos); | 
|  | 29 | 
|  | 30     /** | 
|  | 31      * Informs the stub that its transformation matrix (for rendering the remote
     desktop bitmap) | 
|  | 32      * has been changed, which requires repainting. | 
|  | 33      */ | 
|  | 34     void setTransformation(Matrix matrix); | 
|  | 35 | 
|  | 36     /** | 
|  | 37      * Informs the stub that the cursor position has been moved, which requires 
    repainting. | 
|  | 38      */ | 
|  | 39     void moveCursor(PointF pos); | 
|  | 40 | 
|  | 41     /** | 
|  | 42      * Informs the stub that the cursor visibility has been changed (for differe
    nt input mode), | 
|  | 43      * which requires repainting. | 
|  | 44      */ | 
|  | 45     void setCursorVisibility(boolean visible); | 
|  | 46 | 
|  | 47     /** An {@link Event} triggered when the client size is changed. */ | 
|  | 48     Event<SizeChangedEventParameter> onClientSizeChanged(); | 
|  | 49 | 
|  | 50     /** | 
|  | 51      * An {@link Event} triggered when the size of the host desktop is changed. | 
|  | 52      */ | 
|  | 53     Event<SizeChangedEventParameter> onHostSizeChanged(); | 
|  | 54 | 
|  | 55     /** | 
|  | 56      * An {@link} triggered when a frame has been rendered. | 
|  | 57      */ | 
|  | 58     Event<Void> onCanvasRendered(); | 
|  | 59 } | 
| OLD | NEW | 
|---|