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 "ui/events/event.h" | 5 #include "ui/events/event.h" |
6 #include "ui/events/event_constants.h" | 6 #include "ui/events/event_constants.h" |
7 #include "ui/events/event_utils.h" | 7 #include "ui/events/event_utils.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 DCHECK(event->IsKeyEvent()); | 63 DCHECK(event->IsKeyEvent()); |
64 return event->platform_keycode(); | 64 return event->platform_keycode(); |
65 } | 65 } |
66 | 66 |
67 bool IsCharFromNative(const base::NativeEvent& native_event) { | 67 bool IsCharFromNative(const base::NativeEvent& native_event) { |
68 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); | 68 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); |
69 DCHECK(event->IsKeyEvent()); | 69 DCHECK(event->IsKeyEvent()); |
70 return event->is_char(); | 70 return event->is_char(); |
71 } | 71 } |
72 | 72 |
| 73 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) { |
| 74 NOTIMPLEMENTED(); |
| 75 return 0; |
| 76 } |
| 77 |
| 78 uint16 TextFromNative(const base::NativeEvent& native_event) { |
| 79 NOTIMPLEMENTED(); |
| 80 return 0; |
| 81 } |
| 82 |
| 83 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) { |
| 84 NOTIMPLEMENTED(); |
| 85 return 0; |
| 86 } |
| 87 |
73 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { | 88 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { |
74 const ui::MouseWheelEvent* event = | 89 const ui::MouseWheelEvent* event = |
75 static_cast<const ui::MouseWheelEvent*>(native_event); | 90 static_cast<const ui::MouseWheelEvent*>(native_event); |
76 DCHECK(event->type() == ET_MOUSEWHEEL); | 91 DCHECK(event->type() == ET_MOUSEWHEEL); |
77 return event->offset(); | 92 return event->offset(); |
78 } | 93 } |
79 | 94 |
80 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { | 95 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
81 return NULL; | 96 return NULL; |
82 } | 97 } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 172 |
158 return true; | 173 return true; |
159 } | 174 } |
160 | 175 |
161 int GetModifiersFromKeyState() { | 176 int GetModifiersFromKeyState() { |
162 NOTIMPLEMENTED(); | 177 NOTIMPLEMENTED(); |
163 return 0; | 178 return 0; |
164 } | 179 } |
165 | 180 |
166 } // namespace ui | 181 } // namespace ui |
OLD | NEW |