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

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

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.h
diff --git a/components/mus/public/cpp/tests/window_tree_client_private.h b/components/mus/public/cpp/tests/window_tree_client_private.h
index fc76d86fda46031ff75ea3384925f504b8a1f6fb..7cec901b36071e80286c757c64ebedd12f2393cb 100644
--- a/components/mus/public/cpp/tests/window_tree_client_private.h
+++ b/components/mus/public/cpp/tests/window_tree_client_private.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
namespace ui {
@@ -34,7 +36,7 @@ class WindowTreeClientPrivate {
void OnEmbed(mojom::WindowTree* window_tree);
// Pretends that |event| has been received from the window server.
- void CallOnWindowInputEvent(Window* window, const ui::Event& event);
+ void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event);
private:
WindowTreeClient* tree_client_impl_;
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client.cc ('k') | components/mus/public/cpp/tests/window_tree_client_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698