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

Unified Diff: ash/drag_drop/drag_drop_controller.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ash/drag_drop/drag_drop_controller.h
diff --git a/ash/drag_drop/drag_drop_controller.h b/ash/drag_drop/drag_drop_controller.h
index 1dc0f348e390c934ebba86a9e07ec43a9a01558a..b26bbcf7b7ca5fa84c4624aae41a69fe365cd80f 100644
--- a/ash/drag_drop/drag_drop_controller.h
+++ b/ash/drag_drop/drag_drop_controller.h
@@ -93,7 +93,7 @@ class ASH_EXPORT DragDropController
// Helper method to reset everything.
void Cleanup();
- scoped_ptr<DragImageView> drag_image_;
+ std::unique_ptr<DragImageView> drag_image_;
gfx::Vector2d drag_image_offset_;
const ui::OSExchangeData* drag_data_;
int drag_operation_;
@@ -105,7 +105,7 @@ class ASH_EXPORT DragDropController
gfx::Rect drag_image_initial_bounds_for_cancel_animation_;
gfx::Rect drag_image_final_bounds_for_cancel_animation_;
- scoped_ptr<gfx::LinearAnimation> cancel_animation_;
+ std::unique_ptr<gfx::LinearAnimation> cancel_animation_;
// Window that started the drag.
aura::Window* drag_source_window_;
@@ -117,14 +117,14 @@ class ASH_EXPORT DragDropController
// Closure for quitting nested message loop.
base::Closure quit_closure_;
- scoped_ptr<ash::DragDropTracker> drag_drop_tracker_;
- scoped_ptr<DragDropTrackerDelegate> drag_drop_window_delegate_;
+ std::unique_ptr<ash::DragDropTracker> drag_drop_tracker_;
+ std::unique_ptr<DragDropTrackerDelegate> drag_drop_window_delegate_;
ui::DragDropTypes::DragEventSource current_drag_event_source_;
// Holds a synthetic long tap event to be sent to the |drag_source_window_|.
// See comment in OnGestureEvent() on why we need this.
- scoped_ptr<ui::GestureEvent> pending_long_tap_;
+ std::unique_ptr<ui::GestureEvent> pending_long_tap_;
base::WeakPtrFactory<DragDropController> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698