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

Unified Diff: mash/wm/frame/move_loop.h

Issue 1857623003: convert //mash to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « mash/wm/frame/move_event_handler.cc ('k') | mash/wm/frame/move_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/move_loop.h
diff --git a/mash/wm/frame/move_loop.h b/mash/wm/frame/move_loop.h
index 314592b47073788e58f89a2f77dbcd8736ac1363..13e50f48650d4dc19e8f9a7a1b4dcd0c7e275032 100644
--- a/mash/wm/frame/move_loop.h
+++ b/mash/wm/frame/move_loop.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/mus/public/cpp/window_observer.h"
#include "components/mus/public/interfaces/input_events.mojom.h"
#include "ui/gfx/geometry/point.h"
@@ -50,9 +51,9 @@ class MoveLoop : public mus::WindowObserver {
// and returns a new MoveLoop. All events should be funneled to the MoveLoop
// until done (Move()). |ht_location| is one of the constants defined by
// HitTestCompat.
- static scoped_ptr<MoveLoop> Create(mus::Window* target,
- int ht_location,
- const ui::PointerEvent& event);
+ static std::unique_ptr<MoveLoop> Create(mus::Window* target,
+ int ht_location,
+ const ui::PointerEvent& event);
// Processes an event for a move/resize loop.
MoveResult Move(const ui::PointerEvent& event);
« no previous file with comments | « mash/wm/frame/move_event_handler.cc ('k') | mash/wm/frame/move_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698