Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_EVENTS_EVENT_SINK_H_ | |
| 6 #define UI_EVENTS_EVENT_SINK_H_ | |
| 7 | |
| 8 #include "ui/events/event_dispatcher.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 | |
| 12 class Event; | |
| 13 | |
| 14 // EventSink receives events from an EventSource. | |
| 15 class EVENTS_EXPORT EventSink { | |
| 16 public: | |
| 17 virtual ~EventSink() {} | |
| 18 | |
| 19 // Receives events from EventSource. | |
| 20 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.
| |
| 21 }; | |
| 22 | |
| 23 } // namespace ui | |
| 24 | |
| 25 #endif // UI_EVENTS_EVENT_SINK_H_ | |
| OLD | NEW |