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

Unified Diff: ui/events/event_source.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_sink.h ('k') | ui/events/event_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_source.h
diff --git a/ui/events/event_source.h b/ui/events/event_source.h
index bdcf4679ca9c7c9acd2379f313668b6c68fb412c..d2f223dc83b6d806b6b2135a9b2ce64c178b0c63 100644
--- a/ui/events/event_source.h
+++ b/ui/events/event_source.h
@@ -14,32 +14,32 @@
namespace ui {
class Event;
-class EventProcessor;
+class EventSink;
class EventRewriter;
// EventSource receives events from the native platform (e.g. X11, win32 etc.)
-// and sends the events to an EventProcessor.
+// and sends the events to an EventSink.
class EVENTS_EXPORT EventSource {
public:
EventSource();
virtual ~EventSource();
- virtual EventProcessor* GetEventProcessor() = 0;
+ virtual EventSink* GetEventSink() = 0;
// Adds a rewriter to modify events before they are sent to the
- // EventProcessor. The rewriter must be explicitly removed from the
+ // EventSink. The rewriter must be explicitly removed from the
// EventSource before the rewriter is destroyed. The EventSource
// does not take ownership of the rewriter.
void AddEventRewriter(EventRewriter* rewriter);
void RemoveEventRewriter(EventRewriter* rewriter);
protected:
- EventDispatchDetails SendEventToProcessor(Event* event);
+ EventDispatchDetails SendEventToSink(Event* event);
private:
friend class EventSourceTestApi;
- EventDispatchDetails DeliverEventToProcessor(Event* event);
+ EventDispatchDetails DeliverEventToSink(Event* event);
typedef std::vector<EventRewriter*> EventRewriterList;
EventRewriterList rewriter_list_;
« no previous file with comments | « ui/events/event_sink.h ('k') | ui/events/event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698