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

Side by Side Diff: ui/events/ozone/evdev/device_event_dispatcher_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
« no previous file with comments | « ui/events/ozone/BUILD.gn ('k') | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DEVICE_EVENT_DISPATCHER_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
6 #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ 6 #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "ui/events/devices/input_device.h" 11 #include "ui/events/devices/input_device.h"
12 #include "ui/events/devices/touchscreen_device.h" 12 #include "ui/events/devices/touchscreen_device.h"
13 #include "ui/events/event.h" 13 #include "ui/events/event.h"
14 #include "ui/events/event_constants.h" 14 #include "ui/events/event_constants.h"
15 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" 15 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
16 #include "ui/events/ozone/gamepad/gamepad_event.h"
16 #include "ui/gfx/geometry/point_f.h" 17 #include "ui/gfx/geometry/point_f.h"
17 #include "ui/gfx/geometry/vector2d.h" 18 #include "ui/gfx/geometry/vector2d.h"
18 #include "ui/gfx/geometry/vector2d_f.h" 19 #include "ui/gfx/geometry/vector2d_f.h"
19 20
20 namespace ui { 21 namespace ui {
21 22
22 enum class StylusState; 23 enum class StylusState;
23 24
24 struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams { 25 struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
25 KeyEventParams(int device_id, 26 KeyEventParams(int device_id,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 159
159 // User input events. 160 // User input events.
160 virtual void DispatchKeyEvent(const KeyEventParams& params) = 0; 161 virtual void DispatchKeyEvent(const KeyEventParams& params) = 0;
161 virtual void DispatchMouseMoveEvent(const MouseMoveEventParams& params) = 0; 162 virtual void DispatchMouseMoveEvent(const MouseMoveEventParams& params) = 0;
162 virtual void DispatchMouseButtonEvent( 163 virtual void DispatchMouseButtonEvent(
163 const MouseButtonEventParams& params) = 0; 164 const MouseButtonEventParams& params) = 0;
164 virtual void DispatchMouseWheelEvent(const MouseWheelEventParams& params) = 0; 165 virtual void DispatchMouseWheelEvent(const MouseWheelEventParams& params) = 0;
165 virtual void DispatchPinchEvent(const PinchEventParams& params) = 0; 166 virtual void DispatchPinchEvent(const PinchEventParams& params) = 0;
166 virtual void DispatchScrollEvent(const ScrollEventParams& params) = 0; 167 virtual void DispatchScrollEvent(const ScrollEventParams& params) = 0;
167 virtual void DispatchTouchEvent(const TouchEventParams& params) = 0; 168 virtual void DispatchTouchEvent(const TouchEventParams& params) = 0;
169 virtual void DispatchGamepadEvent(const GamepadEvent& event) = 0;
168 170
169 // Device lifecycle events. 171 // Device lifecycle events.
170 virtual void DispatchKeyboardDevicesUpdated( 172 virtual void DispatchKeyboardDevicesUpdated(
171 const std::vector<InputDevice>& devices) = 0; 173 const std::vector<InputDevice>& devices) = 0;
172 virtual void DispatchTouchscreenDevicesUpdated( 174 virtual void DispatchTouchscreenDevicesUpdated(
173 const std::vector<TouchscreenDevice>& devices) = 0; 175 const std::vector<TouchscreenDevice>& devices) = 0;
174 virtual void DispatchMouseDevicesUpdated( 176 virtual void DispatchMouseDevicesUpdated(
175 const std::vector<InputDevice>& devices) = 0; 177 const std::vector<InputDevice>& devices) = 0;
176 virtual void DispatchTouchpadDevicesUpdated( 178 virtual void DispatchTouchpadDevicesUpdated(
177 const std::vector<InputDevice>& devices) = 0; 179 const std::vector<InputDevice>& devices) = 0;
178 virtual void DispatchDeviceListsComplete() = 0; 180 virtual void DispatchDeviceListsComplete() = 0;
179 virtual void DispatchStylusStateChanged(StylusState stylus_state) = 0; 181 virtual void DispatchStylusStateChanged(StylusState stylus_state) = 0;
182 virtual void DispatchGamepadDevicesUpdated(
183 const std::vector<InputDevice>& devices) = 0;
180 }; 184 };
181 185
182 } // namespace ui 186 } // namespace ui
183 187
184 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ 188 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/BUILD.gn ('k') | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698