| 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_constants.h" | |
| 9 #include "ui/events/event_utils.h" | 8 #include "ui/events/event_utils.h" |
| 10 #include "ui/events/keycodes/keyboard_codes.h" | 9 #include "ui/events/keycodes/dom/dom_code.h" |
| 11 #include "ui/gfx/point.h" | 10 #include "ui/gfx/geometry/point.h" |
| 12 #include "ui/gfx/vector2d.h" | 11 #include "ui/gfx/geometry/vector2d.h" |
| 13 | 12 |
| 14 namespace ui { | 13 namespace ui { |
| 15 | 14 |
| 16 // Stub implementations of platform-specific methods in events_util.h, built | 15 // Stub implementations of platform-specific methods in events_util.h, built |
| 17 // on platforms that currently do not have a complete implementation of events. | 16 // on platforms that currently do not have a complete implementation of events. |
| 18 | 17 |
| 19 void UpdateDeviceList() { | 18 void UpdateDeviceList() { |
| 20 NOTIMPLEMENTED(); | 19 NOTIMPLEMENTED(); |
| 21 } | 20 } |
| 22 | 21 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const base::NativeEvent& native_event) { | 54 const base::NativeEvent& native_event) { |
| 56 NOTIMPLEMENTED(); | 55 NOTIMPLEMENTED(); |
| 57 return 0; | 56 return 0; |
| 58 } | 57 } |
| 59 | 58 |
| 60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { | 59 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { |
| 61 NOTIMPLEMENTED(); | 60 NOTIMPLEMENTED(); |
| 62 return gfx::Vector2d(); | 61 return gfx::Vector2d(); |
| 63 } | 62 } |
| 64 | 63 |
| 65 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) { | 64 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
| 66 NOTIMPLEMENTED(); | 65 NOTIMPLEMENTED() << |
| 66 "Don't know how to copy base::NativeEvent for this platform"; |
| 67 return NULL; |
| 68 } |
| 69 |
| 70 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { |
| 67 } | 71 } |
| 68 | 72 |
| 69 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { | 73 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { |
| 70 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
| 71 } | 75 } |
| 72 | 76 |
| 73 int GetTouchId(const base::NativeEvent& native_event) { | 77 int GetTouchId(const base::NativeEvent& native_event) { |
| 74 NOTIMPLEMENTED(); | 78 NOTIMPLEMENTED(); |
| 75 return 0; | 79 return 0; |
| 76 } | 80 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 bool* is_cancel) { | 117 bool* is_cancel) { |
| 114 NOTIMPLEMENTED(); | 118 NOTIMPLEMENTED(); |
| 115 return false; | 119 return false; |
| 116 } | 120 } |
| 117 | 121 |
| 118 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) { | 122 KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) { |
| 119 NOTIMPLEMENTED(); | 123 NOTIMPLEMENTED(); |
| 120 return static_cast<KeyboardCode>(0); | 124 return static_cast<KeyboardCode>(0); |
| 121 } | 125 } |
| 122 | 126 |
| 123 const char* CodeFromNative(const base::NativeEvent& native_event) { | 127 DomCode CodeFromNative(const base::NativeEvent& native_event) { |
| 124 NOTIMPLEMENTED(); | 128 NOTIMPLEMENTED(); |
| 125 return ""; | 129 return DomCode::NONE; |
| 126 } | 130 } |
| 127 | 131 |
| 128 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { | 132 uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) { |
| 129 NOTIMPLEMENTED(); | 133 NOTIMPLEMENTED(); |
| 130 return 0; | 134 return 0; |
| 131 } | 135 } |
| 132 | 136 |
| 133 bool IsCharFromNative(const base::NativeEvent& native_event) { | 137 bool IsCharFromNative(const base::NativeEvent& native_event) { |
| 134 NOTIMPLEMENTED(); | 138 NOTIMPLEMENTED(); |
| 135 return false; | 139 return false; |
| 136 } | 140 } |
| 137 | 141 |
| 138 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) { | 142 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) { |
| 139 NOTIMPLEMENTED(); | 143 NOTIMPLEMENTED(); |
| 140 return 0; | 144 return 0; |
| 141 } | 145 } |
| 142 | 146 |
| 143 uint16 TextFromNative(const base::NativeEvent& native_event) { | 147 uint16 TextFromNative(const base::NativeEvent& native_event) { |
| 144 NOTIMPLEMENTED(); | 148 NOTIMPLEMENTED(); |
| 145 return 0; | 149 return 0; |
| 146 } | 150 } |
| 147 | 151 |
| 148 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) { | 152 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) { |
| 149 NOTIMPLEMENTED(); | 153 NOTIMPLEMENTED(); |
| 150 return 0; | 154 return 0; |
| 151 } | 155 } |
| 152 | 156 |
| 153 | 157 |
| 154 } // namespace ui | 158 } // namespace ui |
| OLD | NEW |