Lines Matching refs:EventChannel
30 // 3. Add an EventChannel<MyEventTraits>* instance and event_channel() const;
97 class EventChannel {
107 // The shutdown event gets send in the EventChannel's destructor.
108 explicit EventChannel(const EventType& shutdown_event)
115 ~EventChannel() {
216 DISALLOW_COPY_AND_ASSIGN(EventChannel);
219 // An EventListenerHookup hooks up a method in your class to an EventChannel.
220 // Deleting the hookup disconnects from the EventChannel.
230 template <typename EventChannel, typename EventTraits,
235 explicit EventListenerHookupImpl(EventChannel* channel)
264 EventChannel* const channel_;
270 template <typename EventChannel, typename EventTraits,
273 : public EventListenerHookupImpl<EventChannel, EventTraits,
274 SimpleHookup<EventChannel,
279 SimpleHookup(EventChannel* channel, CallbackObject* cbobject,
281 : EventListenerHookupImpl<EventChannel, EventTraits,
294 template <typename EventChannel, typename EventTraits,
298 : public EventListenerHookupImpl<EventChannel, EventTraits,
299 ArgHookup<EventChannel, EventTraits,
304 ArgHookup(EventChannel* channel, CallbackObject* cbobject,
306 : EventListenerHookupImpl<EventChannel, EventTraits,
320 template <typename EventChannel, typename CallbackObject,
322 EventListenerHookup* NewEventListenerHookup(EventChannel* channel,
325 return new SimpleHookup<EventChannel,
326 typename EventChannel::EventTraits,
330 template <typename EventChannel, typename CallbackObject,
332 EventListenerHookup* NewEventListenerHookup(EventChannel* channel,
336 return new ArgHookup<EventChannel,
337 typename EventChannel::EventTraits,