| OLD | NEW |
| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 default: | 166 default: |
| 167 break; | 167 break; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 @Override | 171 @Override |
| 172 public void injectCursorMoveEvent(int x, int y) {} | 172 public void injectCursorMoveEvent(int x, int y) {} |
| 173 | 173 |
| 174 @Override | 174 @Override |
| 175 public DesktopView.InputFeedbackType getShortPressFeedbackType() { | 175 public RenderStub.InputFeedbackType getShortPressFeedbackType() { |
| 176 return DesktopView.InputFeedbackType.NONE; | 176 return RenderStub.InputFeedbackType.NONE; |
| 177 } | 177 } |
| 178 | 178 |
| 179 @Override | 179 @Override |
| 180 public DesktopView.InputFeedbackType getLongPressFeedbackType() { | 180 public RenderStub.InputFeedbackType getLongPressFeedbackType() { |
| 181 return DesktopView.InputFeedbackType.LONG_TOUCH_ANIMATION; | 181 return RenderStub.InputFeedbackType.LONG_TOUCH_ANIMATION; |
| 182 } | 182 } |
| 183 | 183 |
| 184 @Override | 184 @Override |
| 185 public boolean isIndirectInputMode() { | 185 public boolean isIndirectInputMode() { |
| 186 return false; | 186 return false; |
| 187 } | 187 } |
| 188 | 188 |
| 189 private void injectQueuedEvents() { | 189 private void injectQueuedEvents() { |
| 190 while (!mQueuedEvents.isEmpty()) { | 190 while (!mQueuedEvents.isEmpty()) { |
| 191 MotionEvent event = mQueuedEvents.remove(); | 191 MotionEvent event = mQueuedEvents.remove(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 214 | 214 |
| 215 return event; | 215 return event; |
| 216 } | 216 } |
| 217 | 217 |
| 218 private void resetStateData() { | 218 private void resetStateData() { |
| 219 clearQueuedEvents(); | 219 clearQueuedEvents(); |
| 220 mInRemoteGesture = false; | 220 mInRemoteGesture = false; |
| 221 mIgnoreTouchEvents = false; | 221 mIgnoreTouchEvents = false; |
| 222 } | 222 } |
| 223 } | 223 } |
| OLD | NEW |