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

Side by Side Diff: ui/events/ozone/evdev/event_device_info.h

Issue 193813003: ozone: evdev: Add libgestures bindings for touchpad & mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved 1 space by 1 character Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_
7 7
8 #include <limits.h> 8 #include <limits.h>
9 #include <linux/input.h> 9 #include <linux/input.h>
10 10
(...skipping 26 matching lines...) Expand all
37 bool HasSwEvent(unsigned int code) const; 37 bool HasSwEvent(unsigned int code) const;
38 bool HasLedEvent(unsigned int code) const; 38 bool HasLedEvent(unsigned int code) const;
39 39
40 // Properties of absolute axes. 40 // Properties of absolute axes.
41 int32 GetAbsMinimum(unsigned int code) const; 41 int32 GetAbsMinimum(unsigned int code) const;
42 int32 GetAbsMaximum(unsigned int code) const; 42 int32 GetAbsMaximum(unsigned int code) const;
43 43
44 // Check input device properties. 44 // Check input device properties.
45 bool HasProp(unsigned int code) const; 45 bool HasProp(unsigned int code) const;
46 46
47 // Has absolute X & Y axes.
48 bool HasAbsXY() const;
49
50 // Has relativeX & Y axes.
51 bool HasRelXY() const;
52
53 // Determine whether absolute device X/Y coordinates are mapped onto the
54 // screen. This is the case for touchscreens and tablets but not touchpads.
55 bool IsMappedToScreen() const;
56
47 private: 57 private:
48 unsigned long ev_bits_[EVDEV_BITS_TO_LONGS(EV_CNT)]; 58 unsigned long ev_bits_[EVDEV_BITS_TO_LONGS(EV_CNT)];
49 unsigned long key_bits_[EVDEV_BITS_TO_LONGS(KEY_CNT)]; 59 unsigned long key_bits_[EVDEV_BITS_TO_LONGS(KEY_CNT)];
50 unsigned long rel_bits_[EVDEV_BITS_TO_LONGS(REL_CNT)]; 60 unsigned long rel_bits_[EVDEV_BITS_TO_LONGS(REL_CNT)];
51 unsigned long abs_bits_[EVDEV_BITS_TO_LONGS(ABS_CNT)]; 61 unsigned long abs_bits_[EVDEV_BITS_TO_LONGS(ABS_CNT)];
52 unsigned long msc_bits_[EVDEV_BITS_TO_LONGS(MSC_CNT)]; 62 unsigned long msc_bits_[EVDEV_BITS_TO_LONGS(MSC_CNT)];
53 unsigned long sw_bits_[EVDEV_BITS_TO_LONGS(SW_CNT)]; 63 unsigned long sw_bits_[EVDEV_BITS_TO_LONGS(SW_CNT)];
54 unsigned long led_bits_[EVDEV_BITS_TO_LONGS(LED_CNT)]; 64 unsigned long led_bits_[EVDEV_BITS_TO_LONGS(LED_CNT)];
55 unsigned long prop_bits_[EVDEV_BITS_TO_LONGS(INPUT_PROP_CNT)]; 65 unsigned long prop_bits_[EVDEV_BITS_TO_LONGS(INPUT_PROP_CNT)];
56 66
57 struct input_absinfo abs_info_[ABS_CNT]; 67 struct input_absinfo abs_info_[ABS_CNT];
58 68
59 DISALLOW_COPY_AND_ASSIGN(EventDeviceInfo); 69 DISALLOW_COPY_AND_ASSIGN(EventDeviceInfo);
60 }; 70 };
61 71
62 } // namspace ui 72 } // namspace ui
63 73
64 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_ 74 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_INFO_H_
OLDNEW
« 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