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

Unified Diff: mojo/converters/blink/blink_input_events_type_converters.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « mojo/common/weak_interface_ptr_set.h ('k') | mojo/converters/geometry/geometry_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/blink/blink_input_events_type_converters.cc
diff --git a/mojo/converters/blink/blink_input_events_type_converters.cc b/mojo/converters/blink/blink_input_events_type_converters.cc
index eca9face9876bfb1427c2a1996eab351338830de..3700340b1b69630655f9a0966f452037127aba86 100644
--- a/mojo/converters/blink/blink_input_events_type_converters.cc
+++ b/mojo/converters/blink/blink_input_events_type_converters.cc
@@ -4,6 +4,8 @@
#include "mojo/converters/blink/blink_input_events_type_converters.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/time/time.h"
#include "components/mus/public/interfaces/input_event_constants.mojom.h"
@@ -105,7 +107,7 @@ scoped_ptr<blink::WebInputEvent> BuildWebMouseEventFrom(
web_event->clickCount = GetClickCount(event->flags);
- return web_event.Pass();
+ return std::move(web_event);
}
scoped_ptr<blink::WebInputEvent> BuildWebKeyboardEvent(
@@ -137,7 +139,7 @@ scoped_ptr<blink::WebInputEvent> BuildWebKeyboardEvent(
web_event->unmodifiedText[0] = event->key_data->unmodified_text;
web_event->setKeyIdentifierFromWindowsKeyCode();
- return web_event.Pass();
+ return std::move(web_event);
}
scoped_ptr<blink::WebInputEvent> BuildWebMouseWheelEventFrom(
@@ -188,7 +190,7 @@ scoped_ptr<blink::WebInputEvent> BuildWebMouseWheelEventFrom(
break;
}
- return web_event.Pass();
+ return std::move(web_event);
}
} // namespace
« no previous file with comments | « mojo/common/weak_interface_ptr_set.h ('k') | mojo/converters/geometry/geometry_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698