| 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.PointF; | 7 import android.graphics.PointF; |
| 8 import android.view.MotionEvent; | 8 import android.view.MotionEvent; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 mInjector.sendCursorMove(x, y); | 61 mInjector.sendCursorMove(x, y); |
| 62 } | 62 } |
| 63 | 63 |
| 64 @Override | 64 @Override |
| 65 public DesktopView.InputFeedbackType getShortPressFeedbackType() { | 65 public DesktopView.InputFeedbackType getShortPressFeedbackType() { |
| 66 return DesktopView.InputFeedbackType.NONE; | 66 return DesktopView.InputFeedbackType.NONE; |
| 67 } | 67 } |
| 68 | 68 |
| 69 @Override | 69 @Override |
| 70 public DesktopView.InputFeedbackType getLongPressFeedbackType() { | 70 public DesktopView.InputFeedbackType getLongPressFeedbackType() { |
| 71 return DesktopView.InputFeedbackType.SMALL_ANIMATION; | 71 return DesktopView.InputFeedbackType.TINY_SCALED_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 PointF 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 } |
| OLD | NEW |