Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / events / event_source.h
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/event_dispatcher.h"
9 #include "ui/events/events_export.h"
10
11 namespace ui {
12
13 class Event;
14 class EventProcessor;
15
16 // EventSource receives events from the native platform (e.g. X11, win32 etc.)
17 // and sends the events to an EventProcessor.
18 class EVENTS_EXPORT EventSource {
19  public:
20   virtual ~EventSource() {}
21
22   virtual EventProcessor* GetEventProcessor() = 0;
23
24  protected:
25   EventDispatchDetails SendEventToProcessor(Event* event);
26 };
27
28 }  // namespace ui
29
30 #endif // UI_EVENTS_EVENT_SOURCE_H_