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

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

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Support Gamepad in Ozone. Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Returns true if the converter is used for a touchpad device. 74 // Returns true if the converter is used for a touchpad device.
75 virtual bool HasTouchpad() const; 75 virtual bool HasTouchpad() const;
76 76
77 // Returns true if the converter is used for a touchscreen device. 77 // Returns true if the converter is used for a touchscreen device.
78 virtual bool HasTouchscreen() const; 78 virtual bool HasTouchscreen() const;
79 79
80 // Returns true if the converter is used for a pen device. 80 // Returns true if the converter is used for a pen device.
81 virtual bool HasPen() const; 81 virtual bool HasPen() const;
82 82
83 // Returns true if the converter is used for a device with gamepad input.
84 virtual bool HasGamepad() const;
85
83 // Returns true if the converter is used for a device with a caps lock LED. 86 // Returns true if the converter is used for a device with a caps lock LED.
84 virtual bool HasCapsLockLed() const; 87 virtual bool HasCapsLockLed() const;
85 88
86 // Returns the size of the touchscreen device if the converter is used for a 89 // Returns the size of the touchscreen device if the converter is used for a
87 // touchscreen device. 90 // touchscreen device.
88 virtual gfx::Size GetTouchscreenSize() const; 91 virtual gfx::Size GetTouchscreenSize() const;
89 92
90 // Returns the number of touch points this device supports. Should not be 93 // Returns the number of touch points this device supports. Should not be
91 // called unless HasTouchscreen() returns true 94 // called unless HasTouchscreen() returns true
92 virtual int GetTouchPoints() const; 95 virtual int GetTouchPoints() const;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Controller for watching the input fd. 135 // Controller for watching the input fd.
133 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 136 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
134 137
135 private: 138 private:
136 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); 139 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev);
137 }; 140 };
138 141
139 } // namespace ui 142 } // namespace ui
140 143
141 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 144 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_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