| 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 |
| 89 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { | 92 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { |
| 90 } | 93 } |
| 91 | 94 |
| 92 int GetTouchId(const base::NativeEvent& native_event) { | 95 int GetTouchId(const base::NativeEvent& native_event) { |
| 93 const ui::TouchEvent* event = | 96 const ui::TouchEvent* event = |
| 94 static_cast<const ui::TouchEvent*>(native_event); | 97 static_cast<const ui::TouchEvent*>(native_event); |
| 95 DCHECK(event->IsTouchEvent()); | 98 DCHECK(event->IsTouchEvent()); |
| 96 return event->touch_id(); | 99 return event->touch_id(); |
| 97 } | 100 } |
| 98 | 101 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 callback.Run(&touch_event); | 195 callback.Run(&touch_event); |
| 193 } else if (native_ui_event->IsScrollEvent()) { | 196 } else if (native_ui_event->IsScrollEvent()) { |
| 194 ui::ScrollEvent scroll_event(native_event); | 197 ui::ScrollEvent scroll_event(native_event); |
| 195 callback.Run(&scroll_event); | 198 callback.Run(&scroll_event); |
| 196 } else { | 199 } else { |
| 197 NOTREACHED(); | 200 NOTREACHED(); |
| 198 } | 201 } |
| 199 } | 202 } |
| 200 | 203 |
| 201 } // namespace ui | 204 } // namespace ui |
| OLD | NEW |