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

Unified Diff: ui/events/event_sink.h

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 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 | « ui/events/event_rewriter_unittest.cc ('k') | ui/events/event_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_sink.h
diff --git a/ui/events/event_sink.h b/ui/events/event_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..e31c1be2815c4c2c72f441814d5a1c6490794c73
--- /dev/null
+++ b/ui/events/event_sink.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_EVENT_SINK_H_
+#define UI_EVENTS_EVENT_SINK_H_
+
+#include "ui/events/event_dispatcher.h"
+
+namespace ui {
+
+class Event;
+
+// EventSink receives events from an EventSource.
+class EVENTS_EXPORT EventSink {
+ public:
+ virtual ~EventSink() {}
+
+ // Receives events from EventSource.
+ virtual EventDispatchDetails OnEventFromSource(Event* event)
+ WARN_UNUSED_RESULT = 0;
+};
+
+} // namespace ui
+
+#endif // UI_EVENTS_EVENT_SINK_H_
« no previous file with comments | « ui/events/event_rewriter_unittest.cc ('k') | ui/events/event_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698