event_source.h revision a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7
1// Copyright 2013 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_SOURCE_H_ 6#define UI_EVENTS_EVENT_SOURCE_H_ 7 8#include "ui/events/events_export.h" 9 10namespace ui { 11 12class Event; 13class EventProcessor; 14 15// EventSource receives events from the native platform (e.g. X11, win32 etc.) 16// and sends the events to an EventProcessor. 17class EVENTS_EXPORT EventSource { 18 public: 19 virtual ~EventSource() {} 20 21 virtual EventProcessor* GetEventProcessor() = 0; 22 23 protected: 24 void SendEventToProcessor(Event* event); 25}; 26 27} // namespace ui 28 29#endif // UI_EVENTS_EVENT_SOURCE_H_ 30