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

Unified Diff: components/mus/ws/test_utils.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
« no previous file with comments | « components/mus/ws/test_change_tracker.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index 634b2f2dbc7b4a77deff05a5ca9fb2fe884d08d1..d69430763111a84ee766fc3166ef96a781ba59ce 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -245,7 +245,7 @@ class TestWindowManager : public mojom::WindowManager {
mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override;
void WmClientJankinessChanged(ClientSpecificId client_id,
bool janky) override;
- void OnAccelerator(uint32_t id, mojom::EventPtr event) override;
+ void OnAccelerator(uint32_t id, std::unique_ptr<ui::Event> event) override;
bool got_create_top_level_window_;
uint32_t change_id_;
@@ -317,9 +317,9 @@ class TestWindowTreeClient : public mus::mojom::WindowTreeClient {
mojo::Array<uint8_t> new_data) override;
void OnWindowInputEvent(uint32_t event_id,
uint32_t window,
- mojom::EventPtr event,
+ std::unique_ptr<ui::Event> event,
uint32_t event_observer_id) override;
- void OnEventObserved(mojom::EventPtr event,
+ void OnEventObserved(std::unique_ptr<ui::Event> event,
uint32_t event_observer_id) override;
void OnWindowFocused(uint32_t focused_window_id) override;
void OnWindowPredefinedCursorChanged(uint32_t window_id,
« no previous file with comments | « components/mus/ws/test_change_tracker.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698