| 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 "build/build_config.h" |
| 8 #include "ui/events/event_utils.h" | 8 #include "ui/events/event_utils.h" |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
| 10 #include "ui/gfx/vector2d.h" | 10 #include "ui/gfx/vector2d.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 // Stub implementations of platform-specific methods in events_util.h, built | 14 // Stub implementations of platform-specific methods in events_util.h, built |
| 15 // 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. |
| 16 | 16 |
| 17 void UpdateDeviceList() { | 17 void UpdateDeviceList() { |
| 18 NOTIMPLEMENTED(); | 18 NOTIMPLEMENTED(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 EventType EventTypeFromNative(const base::NativeEvent& native_event) { | 21 EventType EventTypeFromNative(const base::NativeEvent& native_event) { |
| 22 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
| 23 return ET_UNKNOWN; | 23 return ET_UNKNOWN; |
| 24 } | 24 } |
| 25 | 25 |
| 26 #if !defined(OS_MACOSX) | |
| 27 int EventFlagsFromNative(const base::NativeEvent& native_event) { | 26 int EventFlagsFromNative(const base::NativeEvent& native_event) { |
| 28 NOTIMPLEMENTED(); | 27 NOTIMPLEMENTED(); |
| 29 return 0; | 28 return 0; |
| 30 } | 29 } |
| 31 #endif | |
| 32 | 30 |
| 33 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { | 31 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { |
| 34 NOTIMPLEMENTED(); | 32 NOTIMPLEMENTED(); |
| 35 return base::TimeDelta(); | 33 return base::TimeDelta(); |
| 36 } | 34 } |
| 37 | 35 |
| 38 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { | 36 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { |
| 39 NOTIMPLEMENTED(); | 37 NOTIMPLEMENTED(); |
| 40 return gfx::Point(); | 38 return gfx::Point(); |
| 41 } | 39 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 55 const base::NativeEvent& native_event) { | 53 const base::NativeEvent& native_event) { |
| 56 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 57 return 0; | 55 return 0; |
| 58 } | 56 } |
| 59 | 57 |
| 60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { | 58 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { |
| 61 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
| 62 return gfx::Vector2d(); | 60 return gfx::Vector2d(); |
| 63 } | 61 } |
| 64 | 62 |
| 63 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
| 64 NOTIMPLEMENTED() << |
| 65 "Don't know how to copy base::NativeEvent for this platform"; |
| 66 return NULL; |
| 67 } |
| 68 |
| 69 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { |
| 70 } |
| 71 |
| 65 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { | 72 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { |
| 66 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
| 67 } | 74 } |
| 68 | 75 |
| 69 int GetTouchId(const base::NativeEvent& native_event) { | 76 int GetTouchId(const base::NativeEvent& native_event) { |
| 70 NOTIMPLEMENTED(); | 77 NOTIMPLEMENTED(); |
| 71 return 0; | 78 return 0; |
| 72 } | 79 } |
| 73 | 80 |
| 74 float GetTouchRadiusX(const base::NativeEvent& native_event) { | 81 float GetTouchRadiusX(const base::NativeEvent& native_event) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 NOTIMPLEMENTED(); | 143 NOTIMPLEMENTED(); |
| 137 return static_cast<KeyboardCode>(0); | 144 return static_cast<KeyboardCode>(0); |
| 138 } | 145 } |
| 139 | 146 |
| 140 const char* CodeFromNative(const base::NativeEvent& native_event) { | 147 const char* CodeFromNative(const base::NativeEvent& native_event) { |
| 141 NOTIMPLEMENTED(); | 148 NOTIMPLEMENTED(); |
| 142 return ""; | 149 return ""; |
| 143 } | 150 } |
| 144 | 151 |
| 145 } // namespace ui | 152 } // namespace ui |
| OLD | NEW |