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/gesture_detection/motion_event.h" | 5 #include "ui/events/gesture_detection/motion_event.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/events/gesture_detection/motion_event_generic.h" | 8 #include "ui/events/gesture_detection/motion_event_generic.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return static_cast<int>(i); | 44 return static_cast<int>(i); |
45 } | 45 } |
46 return -1; | 46 return -1; |
47 } | 47 } |
48 | 48 |
49 int MotionEvent::GetSourceDeviceId(size_t pointer_index) const { | 49 int MotionEvent::GetSourceDeviceId(size_t pointer_index) const { |
50 NOTIMPLEMENTED(); | 50 NOTIMPLEMENTED(); |
51 return 0; | 51 return 0; |
52 } | 52 } |
53 | 53 |
54 scoped_ptr<MotionEvent> MotionEvent::Clone() const { | 54 std::unique_ptr<MotionEvent> MotionEvent::Clone() const { |
55 return MotionEventGeneric::CloneEvent(*this); | 55 return MotionEventGeneric::CloneEvent(*this); |
56 } | 56 } |
57 | 57 |
58 scoped_ptr<MotionEvent> MotionEvent::Cancel() const { | 58 std::unique_ptr<MotionEvent> MotionEvent::Cancel() const { |
59 return MotionEventGeneric::CancelEvent(*this); | 59 return MotionEventGeneric::CancelEvent(*this); |
60 } | 60 } |
61 | 61 |
62 } // namespace ui | 62 } // namespace ui |
OLD | NEW |