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

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

Issue 2272793003: [Remoting Android] New touch feedback texture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback 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.Matrix; 7 import android.graphics.Matrix;
8 import android.graphics.PointF; 8 import android.graphics.PointF;
9 import android.view.MotionEvent; 9 import android.view.MotionEvent;
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 @Override 173 @Override
174 public void injectCursorMoveEvent(int x, int y) {} 174 public void injectCursorMoveEvent(int x, int y) {}
175 175
176 @Override 176 @Override
177 public DesktopView.InputFeedbackType getShortPressFeedbackType() { 177 public DesktopView.InputFeedbackType getShortPressFeedbackType() {
178 return DesktopView.InputFeedbackType.NONE; 178 return DesktopView.InputFeedbackType.NONE;
179 } 179 }
180 180
181 @Override 181 @Override
182 public DesktopView.InputFeedbackType getLongPressFeedbackType() { 182 public DesktopView.InputFeedbackType getLongPressFeedbackType() {
183 return DesktopView.InputFeedbackType.LARGE_ANIMATION; 183 return DesktopView.InputFeedbackType.LONG_TOUCH_ANIMATION;
184 } 184 }
185 185
186 @Override 186 @Override
187 public boolean isIndirectInputMode() { 187 public boolean isIndirectInputMode() {
188 return false; 188 return false;
189 } 189 }
190 190
191 private void injectQueuedEvents() { 191 private void injectQueuedEvents() {
192 while (!mQueuedEvents.isEmpty()) { 192 while (!mQueuedEvents.isEmpty()) {
193 MotionEvent event = mQueuedEvents.remove(); 193 MotionEvent event = mQueuedEvents.remove();
(...skipping 23 matching lines...) Expand all
217 217
218 return event; 218 return event;
219 } 219 }
220 220
221 private void resetStateData() { 221 private void resetStateData() {
222 clearQueuedEvents(); 222 clearQueuedEvents();
223 mInRemoteGesture = false; 223 mInRemoteGesture = false;
224 mIgnoreTouchEvents = false; 224 mIgnoreTouchEvents = false;
225 } 225 }
226 } 226 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698