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

Unified Diff: components/mus/public/cpp/tests/window_tree_client_private.cc

Issue 1939133002: StructTraits to map mus::mojom::Event to unique_ptr<ui::Event> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback. Created 4 years, 6 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: components/mus/public/cpp/tests/window_tree_client_private.cc
diff --git a/components/mus/public/cpp/tests/window_tree_client_private.cc b/components/mus/public/cpp/tests/window_tree_client_private.cc
index c5c6dfa44267c3c821a9d0cb8861d34646f37eae..42cb6f241e9a2355edbea816118d2fd104e627f8 100644
--- a/components/mus/public/cpp/tests/window_tree_client_private.cc
+++ b/components/mus/public/cpp/tests/window_tree_client_private.cc
@@ -37,11 +37,11 @@ void WindowTreeClientPrivate::OnEmbed(mojom::WindowTree* window_tree) {
void WindowTreeClientPrivate::CallOnWindowInputEvent(
Window* window,
- const ui::Event& event) {
+ std::unique_ptr<ui::Event> event) {
const uint32_t event_id = 0u;
const uint32_t observer_id = 0u;
tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(),
- mojom::Event::From(event), observer_id);
+ std::move(event), observer_id);
}
} // namespace mus

Powered by Google App Engine
This is Rietveld 408576698