| 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/time/time.h" | 6 #include "base/time/time.h" |
| 7 #include "build/build_config.h" |
| 7 #include "ui/events/event_utils.h" | 8 #include "ui/events/event_utils.h" |
| 8 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
| 9 #include "ui/gfx/vector2d.h" | 10 #include "ui/gfx/vector2d.h" |
| 10 | 11 |
| 11 namespace ui { | 12 namespace ui { |
| 12 | 13 |
| 13 // Stub implementations of platform-specific methods in events_util.h, built | 14 // Stub implementations of platform-specific methods in events_util.h, built |
| 14 // on platform sthat currently do not have a complete implementation of events. | 15 // on platform sthat currently do not have a complete implementation of events. |
| 15 | 16 |
| 16 void UpdateDeviceList() { | 17 void UpdateDeviceList() { |
| 17 NOTIMPLEMENTED(); | 18 NOTIMPLEMENTED(); |
| 18 } | 19 } |
| 19 | 20 |
| 20 EventType EventTypeFromNative(const base::NativeEvent& native_event) { | 21 EventType EventTypeFromNative(const base::NativeEvent& native_event) { |
| 21 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
| 22 return ET_UNKNOWN; | 23 return ET_UNKNOWN; |
| 23 } | 24 } |
| 24 | 25 |
| 26 #if !defined(OS_MACOSX) |
| 25 int EventFlagsFromNative(const base::NativeEvent& native_event) { | 27 int EventFlagsFromNative(const base::NativeEvent& native_event) { |
| 26 NOTIMPLEMENTED(); | 28 NOTIMPLEMENTED(); |
| 27 return 0; | 29 return 0; |
| 28 } | 30 } |
| 31 #endif |
| 29 | 32 |
| 30 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { | 33 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { |
| 31 NOTIMPLEMENTED(); | 34 NOTIMPLEMENTED(); |
| 32 return base::TimeDelta(); | 35 return base::TimeDelta(); |
| 33 } | 36 } |
| 34 | 37 |
| 35 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { | 38 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { |
| 36 NOTIMPLEMENTED(); | 39 NOTIMPLEMENTED(); |
| 37 return gfx::Point(); | 40 return gfx::Point(); |
| 38 } | 41 } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 NOTIMPLEMENTED(); | 136 NOTIMPLEMENTED(); |
| 134 return static_cast<KeyboardCode>(0); | 137 return static_cast<KeyboardCode>(0); |
| 135 } | 138 } |
| 136 | 139 |
| 137 const char* CodeFromNative(const base::NativeEvent& native_event) { | 140 const char* CodeFromNative(const base::NativeEvent& native_event) { |
| 138 NOTIMPLEMENTED(); | 141 NOTIMPLEMENTED(); |
| 139 return ""; | 142 return ""; |
| 140 } | 143 } |
| 141 | 144 |
| 142 } // namespace ui | 145 } // namespace ui |
| OLD | NEW |