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

Unified Diff: components/mus/public/cpp/window_tree_client.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: todo comments + reorganize files 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/window_tree_client.h
diff --git a/components/mus/public/cpp/window_tree_client.h b/components/mus/public/cpp/window_tree_client.h
index 24121322817fb9c92638ea7f76d7f380cce769a6..df2a98eaa6ee90f17e41cee12c631d531acf3975 100644
--- a/components/mus/public/cpp/window_tree_client.h
+++ b/components/mus/public/cpp/window_tree_client.h
@@ -253,9 +253,9 @@ class WindowTreeClient : public mojom::WindowTreeClient,
mojo::Array<uint8_t> new_data) override;
void OnWindowInputEvent(uint32_t event_id,
Id window_id,
- mojom::EventPtr event,
+ const std::unique_ptr<ui::Event>& event,
uint32_t event_observer_id) override;
- void OnEventObserved(mojom::EventPtr event,
+ void OnEventObserved(const std::unique_ptr<ui::Event>& event,
uint32_t event_observer_id) override;
void OnWindowFocused(Id focused_window_id) override;
void OnWindowPredefinedCursorChanged(Id window_id,
@@ -279,7 +279,8 @@ class WindowTreeClient : public mojom::WindowTreeClient,
transport_properties) override;
void WmClientJankinessChanged(ClientSpecificId client_id,
bool janky) override;
- void OnAccelerator(uint32_t id, mus::mojom::EventPtr event) override;
+ void OnAccelerator(uint32_t id,
+ const std::unique_ptr<ui::Event>& event) override;
// Overridden from WindowManagerClient:
void SetFrameDecorationValues(

Powered by Google App Engine
This is Rietveld 408576698