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/ozone/events_ozone.h" | 5 #include "ui/events/ozone/events_ozone.h" |
6 | 6 |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/event_constants.h" | 8 #include "ui/events/event_constants.h" |
9 #include "ui/events/event_utils.h" | 9 #include "ui/events/event_utils.h" |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 return event->offset(); | 79 return event->offset(); |
80 } | 80 } |
81 | 81 |
82 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { | 82 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
83 return NULL; | 83 return NULL; |
84 } | 84 } |
85 | 85 |
86 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { | 86 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { |
87 } | 87 } |
88 | 88 |
89 void IncrementTouchIdRefCount(const base::NativeEvent& event) { | |
90 } | |
91 | |
92 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { | 89 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { |
93 } | 90 } |
94 | 91 |
95 int GetTouchId(const base::NativeEvent& native_event) { | 92 int GetTouchId(const base::NativeEvent& native_event) { |
96 const ui::TouchEvent* event = | 93 const ui::TouchEvent* event = |
97 static_cast<const ui::TouchEvent*>(native_event); | 94 static_cast<const ui::TouchEvent*>(native_event); |
98 DCHECK(event->IsTouchEvent()); | 95 DCHECK(event->IsTouchEvent()); |
99 return event->touch_id(); | 96 return event->touch_id(); |
100 } | 97 } |
101 | 98 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 callback.Run(&touch_event); | 192 callback.Run(&touch_event); |
196 } else if (native_ui_event->IsScrollEvent()) { | 193 } else if (native_ui_event->IsScrollEvent()) { |
197 ui::ScrollEvent scroll_event(native_event); | 194 ui::ScrollEvent scroll_event(native_event); |
198 callback.Run(&scroll_event); | 195 callback.Run(&scroll_event); |
199 } else { | 196 } else { |
200 NOTREACHED(); | 197 NOTREACHED(); |
201 } | 198 } |
202 } | 199 } |
203 | 200 |
204 } // namespace ui | 201 } // namespace ui |
OLD | NEW |