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

Unified Diff: components/view_manager/event_dispatcher.h

Issue 1164553004: Revert of Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/view_manager/display_manager.cc ('k') | components/view_manager/event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/event_dispatcher.h
diff --git a/components/view_manager/event_dispatcher.h b/components/view_manager/event_dispatcher.h
index a2d45144e04b4f25734244649ac3956e6c38fc0a..9716f06b492d026cdd7d8aeaf99ba55d6ecfbf86 100644
--- a/components/view_manager/event_dispatcher.h
+++ b/components/view_manager/event_dispatcher.h
@@ -8,25 +8,24 @@
#include <set>
#include "base/basictypes.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"
+#include "components/view_manager/public/interfaces/native_viewport.mojom.h"
namespace view_manager {
class ConnectionManager;
// Handles dispatching events to the right location as well as updating focus.
-class EventDispatcher {
+class EventDispatcher : public mojo::NativeViewportEventDispatcher {
public:
explicit EventDispatcher(ConnectionManager* connection_manager);
- ~EventDispatcher();
+ ~EventDispatcher() override;
void AddAccelerator(mojo::KeyboardCode keyboard_code, mojo::EventFlags flags);
void RemoveAccelerator(mojo::KeyboardCode keyboard_code,
mojo::EventFlags flags);
- void OnEvent(mojo::EventPtr event);
+ // NativeViewportEventDispatcher:
+ void OnEvent(mojo::EventPtr event, const OnEventCallback& callback) override;
private:
struct Accelerator {
« no previous file with comments | « components/view_manager/display_manager.cc ('k') | components/view_manager/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698