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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
Index: ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
diff --git a/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h b/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
deleted file mode 100644
index c0564963438237b3abd4aae9816f1012d8720346..0000000000000000000000000000000000000000
--- a/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2014 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_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_
-#define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_
-
-#include <libevdev/libevdev.h>
-
-#include "base/files/file_path.h"
-#include "base/message_loop/message_loop.h"
-#include "ui/events/ozone/evdev/event_converter_evdev.h"
-
-namespace ui {
-
-// Basic wrapper for libevdev-cros.
-//
-// This drives libevdev-cros from a file descriptor and calls delegate
-// with the updated event state from libevdev-cros.
-//
-// The library doesn't support all devices currently. In particular there
-// is no support for keyboard events.
-class EventReaderLibevdevCros : public EventConverterEvdev {
- public:
- class Delegate {
- public:
- virtual ~Delegate();
-
- // Notifier for open. This is called with the initial event state.
- virtual void OnLibEvdevCrosOpen(Evdev* evdev, EventStateRec* evstate) = 0;
-
- // Notifier for event. This is called with the updated event state.
- virtual void OnLibEvdevCrosEvent(Evdev* evdev,
- EventStateRec* state,
- const timeval& time) = 0;
- };
-
- EventReaderLibevdevCros(int fd,
- const base::FilePath& path,
- int id,
- scoped_ptr<Delegate> delegate);
- ~EventReaderLibevdevCros();
-
- // EventConverterEvdev:
- virtual void OnFileCanReadWithoutBlocking(int fd) override;
-
- private:
- static void OnSynReport(void* data,
- EventStateRec* evstate,
- struct timeval* tv);
- static void OnLogMessage(void*, int level, const char*, ...);
-
- // Libevdev state.
- Evdev evdev_;
-
- // Event state.
- EventStateRec evstate_;
-
- // Path to input device.
- base::FilePath path_;
-
- // Delegate for event processing.
- scoped_ptr<Delegate> delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(EventReaderLibevdevCros);
-};
-
-} // namspace ui
-
-#endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_EVENT_READER_LIBEVDEV_CROS_H_
« no previous file with comments | « ui/events/ozone/evdev/keyboard_evdev.cc ('k') | ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698