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

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

Issue 2255663002: [Remoting Android] Use floating point coords for rendering the cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge ToT Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.PointF;
8 import android.view.MotionEvent; 8 import android.view.MotionEvent;
9 9
10 /** 10 /**
11 * Defines a set of behavior and methods to simulate trackpad behavior when resp onding to 11 * Defines a set of behavior and methods to simulate trackpad behavior when resp onding to
12 * local input event data. This class is also responsible for forwarding input event data 12 * local input event data. This class is also responsible for forwarding input event data
13 * to the remote host for injection there. 13 * to the remote host for injection there.
14 */ 14 */
15 public class TrackpadInputStrategy implements InputStrategyInterface { 15 public class TrackpadInputStrategy implements InputStrategyInterface {
16 private final RenderData mRenderData; 16 private final RenderData mRenderData;
17 private final InputEventSender mInjector; 17 private final InputEventSender mInjector;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 @Override 69 @Override
70 public AbstractDesktopView.InputFeedbackType getLongPressFeedbackType() { 70 public AbstractDesktopView.InputFeedbackType getLongPressFeedbackType() {
71 return AbstractDesktopView.InputFeedbackType.SMALL_ANIMATION; 71 return AbstractDesktopView.InputFeedbackType.SMALL_ANIMATION;
72 } 72 }
73 73
74 @Override 74 @Override
75 public boolean isIndirectInputMode() { 75 public boolean isIndirectInputMode() {
76 return true; 76 return true;
77 } 77 }
78 78
79 private Point getCursorPosition() { 79 private PointF getCursorPosition() {
80 synchronized (mRenderData) { 80 synchronized (mRenderData) {
81 return mRenderData.getCursorPosition(); 81 return mRenderData.getCursorPosition();
82 } 82 }
83 } 83 }
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698