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

Unified Diff: ui/events/event_utils.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
« no previous file with comments | « ui/events/event_unittest.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 4a8e1637eda65eab5a70e4f07ff10ccdd88c2032..f3e11602d1fc605656c9c1b4d3009cdfcad0812e 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/event_types.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
#include "ui/events/event.h"
@@ -43,7 +44,7 @@ EVENTS_EXPORT void UpdateDeviceList();
// Returns a ui::Event wrapping a native event. Ownership of the returned value
// is transferred to the caller.
-EVENTS_EXPORT scoped_ptr<Event> EventFromNative(
+EVENTS_EXPORT std::unique_ptr<Event> EventFromNative(
const base::NativeEvent& native_event);
// Get the EventType from a native event.
« no previous file with comments | « ui/events/event_unittest.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698