| OLD | NEW |
| 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.content.Context; | 7 import android.content.Context; |
| 8 import android.graphics.Matrix; | 8 import android.graphics.Matrix; |
| 9 import android.graphics.PointF; | 9 import android.graphics.PointF; |
| 10 import android.util.Log; | |
| 11 import android.view.GestureDetector; | 10 import android.view.GestureDetector; |
| 12 import android.view.MotionEvent; | 11 import android.view.MotionEvent; |
| 13 import android.view.ScaleGestureDetector; | 12 import android.view.ScaleGestureDetector; |
| 14 import android.widget.Scroller; | 13 import android.widget.Scroller; |
| 15 | 14 |
| 16 /** | 15 /** |
| 17 * This class implements the cursor-tracking behavior and gestures. | 16 * This class implements the cursor-tracking behavior and gestures. |
| 18 */ | 17 */ |
| 19 public class TrackingInputHandler implements TouchInputHandler { | 18 public class TrackingInputHandler implements TouchInputHandler { |
| 20 /** | 19 /** |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 public void onLongPress(int pointerCount) { | 455 public void onLongPress(int pointerCount) { |
| 457 mHeldButton = mouseButtonFromPointerCount(pointerCount); | 456 mHeldButton = mouseButtonFromPointerCount(pointerCount); |
| 458 if (mHeldButton != BUTTON_UNDEFINED) { | 457 if (mHeldButton != BUTTON_UNDEFINED) { |
| 459 injectButtonEvent(mHeldButton, true); | 458 injectButtonEvent(mHeldButton, true); |
| 460 mViewer.showLongPressFeedback(); | 459 mViewer.showLongPressFeedback(); |
| 461 mSuppressFling = true; | 460 mSuppressFling = true; |
| 462 } | 461 } |
| 463 } | 462 } |
| 464 } | 463 } |
| 465 } | 464 } |
| OLD | NEW |