| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 return event->code().c_str(); | 58 return event->code().c_str(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { | 61 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { |
| 62 const ui::MouseWheelEvent* event = | 62 const ui::MouseWheelEvent* event = |
| 63 static_cast<const ui::MouseWheelEvent*>(native_event); | 63 static_cast<const ui::MouseWheelEvent*>(native_event); |
| 64 DCHECK(event->type() == ET_MOUSEWHEEL); | 64 DCHECK(event->type() == ET_MOUSEWHEEL); |
| 65 return event->offset(); | 65 return event->offset(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
| 69 return NULL; |
| 70 } |
| 71 |
| 72 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {} |
| 73 |
| 68 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { | 74 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { |
| 69 } | 75 } |
| 70 | 76 |
| 71 int GetTouchId(const base::NativeEvent& native_event) { | 77 int GetTouchId(const base::NativeEvent& native_event) { |
| 72 const ui::TouchEvent* event = | 78 const ui::TouchEvent* event = |
| 73 static_cast<const ui::TouchEvent*>(native_event); | 79 static_cast<const ui::TouchEvent*>(native_event); |
| 74 DCHECK(event->IsTouchEvent()); | 80 DCHECK(event->IsTouchEvent()); |
| 75 return event->touch_id(); | 81 return event->touch_id(); |
| 76 } | 82 } |
| 77 | 83 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 NOTIMPLEMENTED(); | 145 NOTIMPLEMENTED(); |
| 140 return false; | 146 return false; |
| 141 } | 147 } |
| 142 | 148 |
| 143 int GetModifiersFromKeyState() { | 149 int GetModifiersFromKeyState() { |
| 144 NOTIMPLEMENTED(); | 150 NOTIMPLEMENTED(); |
| 145 return 0; | 151 return 0; |
| 146 } | 152 } |
| 147 | 153 |
| 148 } // namespace ui | 154 } // namespace ui |
| OLD | NEW |