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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 mHeldButton = InputStub.BUTTON_UNDEFINED; | 53 mHeldButton = InputStub.BUTTON_UNDEFINED; |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 @Override | 57 @Override |
58 public void injectCursorMoveEvent(int x, int y) { | 58 public void injectCursorMoveEvent(int x, int y) { |
59 mInjector.sendCursorMove(x, y); | 59 mInjector.sendCursorMove(x, y); |
60 } | 60 } |
61 | 61 |
62 @Override | 62 @Override |
63 public DesktopView.InputFeedbackType getShortPressFeedbackType() { | 63 public RenderStub.InputFeedbackType getShortPressFeedbackType() { |
64 return DesktopView.InputFeedbackType.NONE; | 64 return RenderStub.InputFeedbackType.NONE; |
65 } | 65 } |
66 | 66 |
67 @Override | 67 @Override |
68 public DesktopView.InputFeedbackType getLongPressFeedbackType() { | 68 public RenderStub.InputFeedbackType getLongPressFeedbackType() { |
69 return DesktopView.InputFeedbackType.LONG_TRACKPAD_ANIMATION; | 69 return RenderStub.InputFeedbackType.LONG_TRACKPAD_ANIMATION; |
70 } | 70 } |
71 | 71 |
72 @Override | 72 @Override |
73 public boolean isIndirectInputMode() { | 73 public boolean isIndirectInputMode() { |
74 return true; | 74 return true; |
75 } | 75 } |
76 | 76 |
77 private PointF getCursorPosition() { | 77 private PointF getCursorPosition() { |
78 return mRenderData.getCursorPosition(); | 78 return mRenderData.getCursorPosition(); |
79 } | 79 } |
80 } | 80 } |
OLD | NEW |