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

Unified Diff: components/mus/public/cpp/input_event_handler.h

Issue 1906623003: Convert //components/mus 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
« no previous file with comments | « components/mus/public/cpp/context_provider.h ('k') | components/mus/public/cpp/lib/in_flight_change.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/input_event_handler.h
diff --git a/components/mus/public/cpp/input_event_handler.h b/components/mus/public/cpp/input_event_handler.h
index d21354b2d732a937e29f32d0d88bf7467290d4e6..db0c0d0544dd7915771a6dfea4c7fbf5d8572500 100644
--- a/components/mus/public/cpp/input_event_handler.h
+++ b/components/mus/public/cpp/input_event_handler.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_MUS_PUBLIC_CPP_INPUT_EVENT_HANDLER_H_
#define COMPONENTS_MUS_PUBLIC_CPP_INPUT_EVENT_HANDLER_H_
+#include <memory>
+
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
namespace ui {
class Event;
@@ -30,7 +31,8 @@ class InputEventHandler {
virtual void OnWindowInputEvent(
Window* target,
const ui::Event& event,
- scoped_ptr<base::Callback<void(mojom::EventResult)>>* ack_callback) = 0;
+ std::unique_ptr<base::Callback<void(mojom::EventResult)>>*
+ ack_callback) = 0;
protected:
virtual ~InputEventHandler() {}
« no previous file with comments | « components/mus/public/cpp/context_provider.h ('k') | components/mus/public/cpp/lib/in_flight_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698