| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "ui/events/event_utils.h" | 10 #include "ui/events/event_utils.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { | 80 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { |
| 81 NOTIMPLEMENTED(); | 81 NOTIMPLEMENTED(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 int GetTouchId(const base::NativeEvent& native_event) { | 84 int GetTouchId(const base::NativeEvent& native_event) { |
| 85 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
| 86 return 0; | 86 return 0; |
| 87 } | 87 } |
| 88 | 88 |
| 89 float GetTouchRadiusX(const base::NativeEvent& native_event) { | |
| 90 NOTIMPLEMENTED(); | |
| 91 return 0.f; | |
| 92 } | |
| 93 | |
| 94 float GetTouchRadiusY(const base::NativeEvent& native_event) { | |
| 95 NOTIMPLEMENTED(); | |
| 96 return 0.f; | |
| 97 } | |
| 98 | |
| 99 float GetTouchAngle(const base::NativeEvent& native_event) { | 89 float GetTouchAngle(const base::NativeEvent& native_event) { |
| 100 NOTIMPLEMENTED(); | 90 NOTIMPLEMENTED(); |
| 101 return 0.f; | 91 return 0.f; |
| 102 } | 92 } |
| 103 | 93 |
| 104 float GetTouchForce(const base::NativeEvent& native_event) { | 94 PointerDetails GetTouchPointerDetailsFromNative( |
| 95 const base::NativeEvent& native_event) { |
| 105 NOTIMPLEMENTED(); | 96 NOTIMPLEMENTED(); |
| 106 return 0.f; | 97 return PointerDetails(EventPointerType::POINTER_TYPE_UNKNOWN, |
| 98 /* radius_x */ 1.0, |
| 99 /* radius_y */ 1.0, |
| 100 /* force */ 0.f, |
| 101 /* tilt_x */ 0.f, |
| 102 /* tilt_y */ 0.f); |
| 107 } | 103 } |
| 108 | 104 |
| 109 bool GetScrollOffsets(const base::NativeEvent& native_event, | 105 bool GetScrollOffsets(const base::NativeEvent& native_event, |
| 110 float* x_offset, | 106 float* x_offset, |
| 111 float* y_offset, | 107 float* y_offset, |
| 112 float* x_offset_ordinal, | 108 float* x_offset_ordinal, |
| 113 float* y_offset_ordinal, | 109 float* y_offset_ordinal, |
| 114 int* finger_count) { | 110 int* finger_count) { |
| 115 NOTIMPLEMENTED(); | 111 NOTIMPLEMENTED(); |
| 116 return false; | 112 return false; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 return 0; | 147 return 0; |
| 152 } | 148 } |
| 153 | 149 |
| 154 uint16_t UnmodifiedTextFromNative(const base::NativeEvent& native_event) { | 150 uint16_t UnmodifiedTextFromNative(const base::NativeEvent& native_event) { |
| 155 NOTIMPLEMENTED(); | 151 NOTIMPLEMENTED(); |
| 156 return 0; | 152 return 0; |
| 157 } | 153 } |
| 158 | 154 |
| 159 | 155 |
| 160 } // namespace ui | 156 } // namespace ui |
| OLD | NEW |