Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: ui/base/ozone/event_factory_ozone.h

Issue 16466003: Event handling support for ozone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase-ed for removal of DRT Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/ozone/event_converter_ozone.cc ('k') | ui/base/ozone/event_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ozone/event_factory_ozone.h
diff --git a/ui/base/ozone/event_factory_ozone.h b/ui/base/ozone/event_factory_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..adf5b81c61e28ed2e596484f1f7c68d956e239fd
--- /dev/null
+++ b/ui/base/ozone/event_factory_ozone.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2013 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_BASE_OZONE_EVENT_FACTORY_OZONE_H_
+#define UI_BASE_OZONE_EVENT_FACTORY_OZONE_H_
+
+#include "base/memory/scoped_vector.h"
+#include "base/message_pump_libevent.h"
+#include "ui/base/ozone/event_converter_ozone.h"
+#include "ui/base/ui_export.h"
+
+namespace ui {
+
+// Sets up and manages watcher instances for event sources in /dev/input/*.
+class UI_EXPORT EventFactoryOzone {
+ public:
+ EventFactoryOzone();
+ virtual ~EventFactoryOzone();
+
+ // Opens /dev/input/* event sources as appropriate and set up watchers.
+ void CreateEvdevWatchers();
+
+ private:
+ // FileDescriptorWatcher instances for each watched source of events.
+ ScopedVector<EventConverterOzone> evdev_watchers_;
+ ScopedVector<base::MessagePumpLibevent::FileDescriptorWatcher>
+ fd_controllers_;
+
+ DISALLOW_COPY_AND_ASSIGN(EventFactoryOzone);
+};
+
+} // namespace ui
+
+#endif // UI_BASE_OZONE_EVENT_FACTORY_OZONE_H_
« no previous file with comments | « ui/base/ozone/event_converter_ozone.cc ('k') | ui/base/ozone/event_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698