Chromium Code Reviews| 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..1e73297fb75b6429386e7d6e2e085561630a72b6 |
| --- /dev/null |
| +++ b/ui/events/event_sink.h |
| @@ -0,0 +1,25 @@ |
| +// 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) = 0; |
|
sadrul
2017/03/22 19:40:10
Actually, can you use WARN_UNUSED_RESULT here?
Peng
2017/03/22 20:16:19
Done.
|
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_EVENTS_EVENT_SINK_H_ |