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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev.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
« no previous file with comments | « ui/events/ozone/evdev/cursor_delegate_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/event_converter_evdev.h b/ui/events/ozone/evdev/event_converter_evdev.h
deleted file mode 100644
index fc1203719189b1190e11670c78d0addbae2a4acd..0000000000000000000000000000000000000000
--- a/ui/events/ozone/evdev/event_converter_evdev.h
+++ /dev/null
@@ -1,62 +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_EVENT_CONVERTER_EVDEV_H_
-#define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
-
-#include "base/callback.h"
-#include "base/files/file_path.h"
-#include "base/message_loop/message_loop.h"
-#include "ui/events/ozone/evdev/event_dispatch_callback.h"
-#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace ui {
-
-class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev
- : public base::MessagePumpLibevent::Watcher {
- public:
- EventConverterEvdev(int fd, const base::FilePath& path, int id);
- virtual ~EventConverterEvdev();
-
- int id() const { return id_; }
-
- const base::FilePath& path() { return path_; }
-
- // Start reading events.
- void Start();
-
- // Stop reading events.
- void Stop();
-
- // Returns true of the converter is used for a touchscreen device.
- virtual bool HasTouchscreen() const;
-
- // Returns the size of the touchscreen device if the converter is used for a
- // touchscreen device.
- virtual gfx::Size GetTouchscreenSize() const;
-
- protected:
- // base::MessagePumpLibevent::Watcher:
- virtual void OnFileCanWriteWithoutBlocking(int fd) override;
-
- // File descriptor to read.
- int fd_;
-
- // Path to input device.
- base::FilePath path_;
-
- // Uniquely identifies an event converter.
- int id_;
-
- // Controller for watching the input fd.
- base::MessagePumpLibevent::FileDescriptorWatcher controller_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev);
-};
-
-} // namespace ui
-
-#endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
« no previous file with comments | « ui/events/ozone/evdev/cursor_delegate_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698