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.Point; | 8 import android.graphics.Point; |
9 import android.view.MotionEvent; | 9 import android.view.MotionEvent; |
10 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 | 167 |
168 default: | 168 default: |
169 break; | 169 break; |
170 } | 170 } |
171 } | 171 } |
172 | 172 |
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 AbstractDesktopView.InputFeedbackType getShortPressFeedbackType() { |
Sergey Ulanov
2016/08/18 06:14:20
Maybe rename AbstractDesktopView->DesktopView, now
| |
178 return DesktopView.InputFeedbackType.NONE; | 178 return AbstractDesktopView.InputFeedbackType.NONE; |
179 } | 179 } |
180 | 180 |
181 @Override | 181 @Override |
182 public DesktopView.InputFeedbackType getLongPressFeedbackType() { | 182 public AbstractDesktopView.InputFeedbackType getLongPressFeedbackType() { |
183 return DesktopView.InputFeedbackType.LARGE_ANIMATION; | 183 return AbstractDesktopView.InputFeedbackType.LARGE_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 Loading... | |
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 } |
OLD | NEW |