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 | |
88 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { | 73 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { |
89 const ui::MouseWheelEvent* event = | 74 const ui::MouseWheelEvent* event = |
90 static_cast<const ui::MouseWheelEvent*>(native_event); | 75 static_cast<const ui::MouseWheelEvent*>(native_event); |
91 DCHECK(event->type() == ET_MOUSEWHEEL); | 76 DCHECK(event->type() == ET_MOUSEWHEEL); |
92 return event->offset(); | 77 return event->offset(); |
93 } | 78 } |
94 | 79 |
95 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { | 80 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
96 return NULL; | 81 return NULL; |
97 } | 82 } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 157 |
173 return true; | 158 return true; |
174 } | 159 } |
175 | 160 |
176 int GetModifiersFromKeyState() { | 161 int GetModifiersFromKeyState() { |
177 NOTIMPLEMENTED(); | 162 NOTIMPLEMENTED(); |
178 return 0; | 163 return 0; |
179 } | 164 } |
180 | 165 |
181 } // namespace ui | 166 } // namespace ui |
OLD | NEW |