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

Unified Diff: ui/views/mus/platform_window_mus.cc

Issue 1806703002: Use ui::Event instead of mojom::EventPtr in mus::InputEventHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: ui/views/mus/platform_window_mus.cc
diff --git a/ui/views/mus/platform_window_mus.cc b/ui/views/mus/platform_window_mus.cc
index 2a1fc4e3ef4ea5b13f1d143c172bb050f19722cb..8e166afc294b4e01faf561f5ea1ee996fcf210a9 100644
--- a/ui/views/mus/platform_window_mus.cc
+++ b/ui/views/mus/platform_window_mus.cc
@@ -222,15 +222,14 @@ void PlatformWindowMus::OnRequestClose(mus::Window* window) {
void PlatformWindowMus::OnWindowInputEvent(
mus::Window* view,
- mus::mojom::EventPtr event,
+ ui::Event* event,
scoped_ptr<base::Callback<void(bool)>>* ack_callback) {
// It's possible dispatching the event will spin a nested message loop. Ack
// the callback now, otherwise we appear unresponsive for the life of the
// nested message loop.
(*ack_callback)->Run(true);
ack_callback->reset();
- scoped_ptr<ui::Event> ui_event(event.To<scoped_ptr<ui::Event>>());
- delegate_->DispatchEvent(ui_event.get());
+ delegate_->DispatchEvent(event);
}
} // namespace views
« content/renderer/mus/compositor_mus_connection.h ('K') | « ui/views/mus/platform_window_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698