Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: ui/events/gesture_detection/motion_event.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/motion_event.h ('k') | ui/events/gesture_detection/motion_event_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698