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

Unified Diff: components/mus/public/cpp/input_event_handler.h

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: Addressed feedback. 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
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/input_event_handler.h
diff --git a/components/mus/public/cpp/input_event_handler.h b/components/mus/public/cpp/input_event_handler.h
index 597653ba3d487163b8ad607b19d68ca8f898a6d5..e40e60e31ee969e3f88f25f7a58755ff91562197 100644
--- a/components/mus/public/cpp/input_event_handler.h
+++ b/components/mus/public/cpp/input_event_handler.h
@@ -6,7 +6,11 @@
#define COMPONENTS_MUS_PUBLIC_CPP_INPUT_EVENT_HANDLER_H_
#include "base/callback_forward.h"
-#include "components/mus/public/interfaces/input_events.mojom.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace ui {
+class Event;
+}
namespace mus {
@@ -21,7 +25,7 @@ class InputEventHandler {
// the callback, then WindowTreeClientImpl will ack the event as not consumed.
virtual void OnWindowInputEvent(
Window* target,
- mojom::EventPtr event,
+ const ui::Event& event,
scoped_ptr<base::Callback<void(bool)>>* ack_callback) = 0;
protected:
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698