| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/gestures/motion_event_aura.h" | 5 #include "ui/events/gestures/motion_event_aura.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/events/gestures/gesture_configuration.h" | 8 #include "ui/events/gestures/gesture_configuration.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 NOTIMPLEMENTED(); | 149 NOTIMPLEMENTED(); |
| 150 return 0; | 150 return 0; |
| 151 } | 151 } |
| 152 | 152 |
| 153 float MotionEventAura::GetHistoricalY(size_t pointer_index, | 153 float MotionEventAura::GetHistoricalY(size_t pointer_index, |
| 154 size_t historical_index) const { | 154 size_t historical_index) const { |
| 155 NOTIMPLEMENTED(); | 155 NOTIMPLEMENTED(); |
| 156 return 0; | 156 return 0; |
| 157 } | 157 } |
| 158 | 158 |
| 159 MotionEvent::ToolType MotionEventAura::GetToolType(size_t pointer_index) const { |
| 160 NOTIMPLEMENTED(); |
| 161 return MotionEvent::TOOL_TYPE_UNKNOWN; |
| 162 } |
| 163 |
| 164 int MotionEventAura::GetButtonState() const { |
| 165 NOTIMPLEMENTED(); |
| 166 return 0; |
| 167 } |
| 168 |
| 159 scoped_ptr<MotionEvent> MotionEventAura::Clone() const { | 169 scoped_ptr<MotionEvent> MotionEventAura::Clone() const { |
| 160 return scoped_ptr<MotionEvent>(new MotionEventAura(pointer_count_, | 170 return scoped_ptr<MotionEvent>(new MotionEventAura(pointer_count_, |
| 161 last_touch_time_, | 171 last_touch_time_, |
| 162 cached_action_, | 172 cached_action_, |
| 163 cached_action_index_, | 173 cached_action_index_, |
| 164 active_touches_)); | 174 active_touches_)); |
| 165 } | 175 } |
| 166 scoped_ptr<MotionEvent> MotionEventAura::Cancel() const { | 176 scoped_ptr<MotionEvent> MotionEventAura::Cancel() const { |
| 167 return scoped_ptr<MotionEvent>(new MotionEventAura( | 177 return scoped_ptr<MotionEvent>(new MotionEventAura( |
| 168 pointer_count_, last_touch_time_, ACTION_CANCEL, -1, active_touches_)); | 178 pointer_count_, last_touch_time_, ACTION_CANCEL, -1, active_touches_)); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 size_t MotionEventAura::GetIndexFromId(int id) const { | 256 size_t MotionEventAura::GetIndexFromId(int id) const { |
| 247 for (size_t i = 0; i < pointer_count_; ++i) { | 257 for (size_t i = 0; i < pointer_count_; ++i) { |
| 248 if (active_touches_[i].touch_id == id) | 258 if (active_touches_[i].touch_id == id) |
| 249 return i; | 259 return i; |
| 250 } | 260 } |
| 251 NOTREACHED(); | 261 NOTREACHED(); |
| 252 return 0; | 262 return 0; |
| 253 } | 263 } |
| 254 | 264 |
| 255 } // namespace ui | 265 } // namespace ui |
| OLD | NEW |