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

Unified Diff: ui/events/gesture_detection/motion_event_generic.h

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 side-by-side diff with in-line comments
Download patch
Index: ui/events/gesture_detection/motion_event_generic.h
diff --git a/ui/events/gesture_detection/motion_event_generic.h b/ui/events/gesture_detection/motion_event_generic.h
index bc9b351381ac7e9d15528bd258130ac352f3c740..3b754e6fcf5f934058b065fd568b7859912c84d7 100644
--- a/ui/events/gesture_detection/motion_event_generic.h
+++ b/ui/events/gesture_detection/motion_event_generic.h
@@ -94,7 +94,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
// Add an event to the history. |this| and |event| must have the same pointer
// count and must both have an action of ACTION_MOVE.
- void PushHistoricalEvent(scoped_ptr<MotionEvent> event);
+ void PushHistoricalEvent(std::unique_ptr<MotionEvent> event);
void set_action(Action action) { action_ = action; }
void set_event_time(base::TimeTicks event_time) { event_time_ = event_time; }
@@ -105,8 +105,10 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
void set_button_state(int button_state) { button_state_ = button_state; }
void set_flags(int flags) { flags_ = flags; }
- static scoped_ptr<MotionEventGeneric> CloneEvent(const MotionEvent& event);
- static scoped_ptr<MotionEventGeneric> CancelEvent(const MotionEvent& event);
+ static std::unique_ptr<MotionEventGeneric> CloneEvent(
+ const MotionEvent& event);
+ static std::unique_ptr<MotionEventGeneric> CancelEvent(
+ const MotionEvent& event);
protected:
MotionEventGeneric();
« no previous file with comments | « ui/events/gesture_detection/motion_event_buffer_unittest.cc ('k') | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698