OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/events/event_utils.h" | 5 #include "ui/events/event_utils.h" |
6 | 6 |
7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 141 } |
142 | 142 |
143 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { | 143 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
144 return [event copy]; | 144 return [event copy]; |
145 } | 145 } |
146 | 146 |
147 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { | 147 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { |
148 [event release]; | 148 [event release]; |
149 } | 149 } |
150 | 150 |
| 151 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) { |
| 152 NOTIMPLEMENTED(); |
| 153 } |
| 154 |
151 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { | 155 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { |
152 NOTIMPLEMENTED(); | 156 NOTIMPLEMENTED(); |
153 } | 157 } |
154 | 158 |
155 int GetTouchId(const base::NativeEvent& native_event) { | 159 int GetTouchId(const base::NativeEvent& native_event) { |
156 NOTIMPLEMENTED(); | 160 NOTIMPLEMENTED(); |
157 return 0; | 161 return 0; |
158 } | 162 } |
159 | 163 |
160 float GetTouchRadiusX(const base::NativeEvent& native_event) { | 164 float GetTouchRadiusX(const base::NativeEvent& native_event) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 214 |
211 const char* CodeFromNative(const base::NativeEvent& native_event) { | 215 const char* CodeFromNative(const base::NativeEvent& native_event) { |
212 return CodeFromNSEvent(native_event); | 216 return CodeFromNSEvent(native_event); |
213 } | 217 } |
214 | 218 |
215 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { | 219 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { |
216 return native_event.keyCode; | 220 return native_event.keyCode; |
217 } | 221 } |
218 | 222 |
219 } // namespace ui | 223 } // namespace ui |
OLD | NEW |