| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 228 |
| 225 const char* CodeFromNative(const base::NativeEvent& native_event) { | 229 const char* CodeFromNative(const base::NativeEvent& native_event) { |
| 226 return CodeFromNSEvent(native_event); | 230 return CodeFromNSEvent(native_event); |
| 227 } | 231 } |
| 228 | 232 |
| 229 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { | 233 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { |
| 230 return native_event.keyCode; | 234 return native_event.keyCode; |
| 231 } | 235 } |
| 232 | 236 |
| 233 } // namespace ui | 237 } // namespace ui |
| OLD | NEW |