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

Unified Diff: components/view_manager/event_dispatcher.h

Issue 1149083010: Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified headless logic Created 5 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/view_manager/event_dispatcher.h
diff --git a/components/view_manager/event_dispatcher.h b/components/view_manager/event_dispatcher.h
index 9716f06b492d026cdd7d8aeaf99ba55d6ecfbf86..a2d45144e04b4f25734244649ac3956e6c38fc0a 100644
--- a/components/view_manager/event_dispatcher.h
+++ b/components/view_manager/event_dispatcher.h
@@ -8,24 +8,25 @@
#include <set>
#include "base/basictypes.h"
-#include "components/view_manager/public/interfaces/native_viewport.mojom.h"
+#include "ui/mojo/events/input_event_constants.mojom.h"
+#include "ui/mojo/events/input_events.mojom.h"
+#include "ui/mojo/events/input_key_codes.mojom.h"
namespace view_manager {
class ConnectionManager;
// Handles dispatching events to the right location as well as updating focus.
-class EventDispatcher : public mojo::NativeViewportEventDispatcher {
+class EventDispatcher {
public:
explicit EventDispatcher(ConnectionManager* connection_manager);
- ~EventDispatcher() override;
+ ~EventDispatcher();
void AddAccelerator(mojo::KeyboardCode keyboard_code, mojo::EventFlags flags);
void RemoveAccelerator(mojo::KeyboardCode keyboard_code,
mojo::EventFlags flags);
- // NativeViewportEventDispatcher:
- void OnEvent(mojo::EventPtr event, const OnEventCallback& callback) override;
+ void OnEvent(mojo::EventPtr event);
private:
struct Accelerator {

Powered by Google App Engine
This is Rietveld 408576698