Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java

Issue 2047903002: [Chromoting] TouchInputHandler now listens to events in DesktopView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.Point; 7 import android.graphics.Point;
8 8
9 import org.chromium.chromoting.jni.Client; 9 import org.chromium.chromoting.jni.Client;
10 10
(...skipping 20 matching lines...) Expand all
31 * Informs the view that its transformation matrix (for rendering the remote desktop bitmap) 31 * Informs the view that its transformation matrix (for rendering the remote desktop bitmap)
32 * has been changed by the TouchInputHandler, which requires repainting. 32 * has been changed by the TouchInputHandler, which requires repainting.
33 */ 33 */
34 void transformationChanged(); 34 void transformationChanged();
35 35
36 /** 36 /**
37 * Starts or stops an animation. Whilst the animation is running, the Deskto pView will 37 * Starts or stops an animation. Whilst the animation is running, the Deskto pView will
38 * periodically call TouchInputHandler.processAnimation() and repaint itself . 38 * periodically call TouchInputHandler.processAnimation() and repaint itself .
39 */ 39 */
40 void setAnimationEnabled(boolean enabled); 40 void setAnimationEnabled(boolean enabled);
41
42 /** An {@link Event} which is triggered when the view is being painted. */
43 Event<PaintEventParameter> onPaint();
44
45 /** An {@link Event} which is triggered when the client size is changed. */
46 Event<SizeChangedEventParameter> onClientSizeChanged();
47
48 /** An {@link Event} which is triggered when the host size is changed. */
49 Event<SizeChangedEventParameter> onHostSizeChanged();
50
51 /** An {@link Event} which is triggered when user touchs the screen. */
52 Event<TouchEventParameter> onTouch();
41 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698