| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 return false; | 197 return false; |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool GetGestureTimes(const base::NativeEvent& native_event, | 200 bool GetGestureTimes(const base::NativeEvent& native_event, |
| 201 double* start_time, | 201 double* start_time, |
| 202 double* end_time) { | 202 double* end_time) { |
| 203 NOTIMPLEMENTED(); | 203 NOTIMPLEMENTED(); |
| 204 return false; | 204 return false; |
| 205 } | 205 } |
| 206 | 206 |
| 207 void SetNaturalScroll(bool enabled) { | |
| 208 NOTIMPLEMENTED(); | |
| 209 } | |
| 210 | |
| 211 bool IsNaturalScrollEnabled() { | |
| 212 NOTIMPLEMENTED(); | |
| 213 return false; | |
| 214 } | |
| 215 | |
| 216 bool IsTouchpadEvent(const base::NativeEvent& native_event) { | |
| 217 NOTIMPLEMENTED(); | |
| 218 return false; | |
| 219 } | |
| 220 | |
| 221 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) { | 207 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) { |
| 222 return KeyboardCodeFromNSEvent(native_event); | 208 return KeyboardCodeFromNSEvent(native_event); |
| 223 } | 209 } |
| 224 | 210 |
| 225 const char* CodeFromNative(const base::NativeEvent& native_event) { | 211 const char* CodeFromNative(const base::NativeEvent& native_event) { |
| 226 return CodeFromNSEvent(native_event); | 212 return CodeFromNSEvent(native_event); |
| 227 } | 213 } |
| 228 | 214 |
| 229 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { | 215 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { |
| 230 return native_event.keyCode; | 216 return native_event.keyCode; |
| 231 } | 217 } |
| 232 | 218 |
| 233 } // namespace ui | 219 } // namespace ui |
| OLD | NEW |