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

Unified Diff: ui/events/ozone/evdev/event_device_info.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/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/event_device_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_device_info.h
diff --git a/ui/events/ozone/evdev/event_device_info.h b/ui/events/ozone/evdev/event_device_info.h
deleted file mode 100644
index 321711404d5c23c66cc8d347f1840e976b78bb60..0000000000000000000000000000000000000000
--- a/ui/events/ozone/evdev/event_device_info.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 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_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_
-#define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_
-
-#include <limits.h>
-#include <linux/input.h>
-
-#include "base/basictypes.h"
-#include "ui/events/ozone/evdev/event_device_util.h"
-#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
-
-namespace ui {
-
-// Device information for Linux input devices
-//
-// This stores and queries information about input devices; in
-// particular it knows which events the device can generate.
-class EVENTS_OZONE_EVDEV_EXPORT EventDeviceInfo {
- public:
- EventDeviceInfo();
- ~EventDeviceInfo();
-
- // Initialize device information from an open device.
- bool Initialize(int fd);
-
- // Check events this device can generate.
- bool HasEventType(unsigned int type) const;
- bool HasKeyEvent(unsigned int code) const;
- bool HasRelEvent(unsigned int code) const;
- bool HasAbsEvent(unsigned int code) const;
- bool HasMscEvent(unsigned int code) const;
- bool HasSwEvent(unsigned int code) const;
- bool HasLedEvent(unsigned int code) const;
-
- // Properties of absolute axes.
- int32 GetAbsMinimum(unsigned int code) const;
- int32 GetAbsMaximum(unsigned int code) const;
-
- // Check input device properties.
- bool HasProp(unsigned int code) const;
-
- // Has absolute X & Y axes.
- bool HasAbsXY() const;
-
- // Has relativeX & Y axes.
- bool HasRelXY() const;
-
- // Determine whether absolute device X/Y coordinates are mapped onto the
- // screen. This is the case for touchscreens and tablets but not touchpads.
- bool IsMappedToScreen() const;
-
- private:
- unsigned long ev_bits_[EVDEV_BITS_TO_LONGS(EV_CNT)];
- unsigned long key_bits_[EVDEV_BITS_TO_LONGS(KEY_CNT)];
- unsigned long rel_bits_[EVDEV_BITS_TO_LONGS(REL_CNT)];
- unsigned long abs_bits_[EVDEV_BITS_TO_LONGS(ABS_CNT)];
- unsigned long msc_bits_[EVDEV_BITS_TO_LONGS(MSC_CNT)];
- unsigned long sw_bits_[EVDEV_BITS_TO_LONGS(SW_CNT)];
- unsigned long led_bits_[EVDEV_BITS_TO_LONGS(LED_CNT)];
- unsigned long prop_bits_[EVDEV_BITS_TO_LONGS(INPUT_PROP_CNT)];
-
- struct input_absinfo abs_info_[ABS_CNT];
-
- DISALLOW_COPY_AND_ASSIGN(EventDeviceInfo);
-};
-
-} // namspace ui
-
-#endif // UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/event_device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698