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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h

Issue 796803002: ozone: mouse button swap shouldn't affect touchpad physical click (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_LIBGESTURES_GLUE_GESTURE_PROPERTY_PROVIDER_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_PROPERTY_PROVIDER_H_
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_PROPERTY_PROVIDER_H_ 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_PROPERTY_PROVIDER_H_
7 7
8 #include <gestures/gestures.h> 8 #include <gestures/gestures.h>
9 #include <libevdev/libevdev.h> 9 #include <libevdev/libevdev.h>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 GesturePropertyProvider(); 76 GesturePropertyProvider();
77 ~GesturePropertyProvider(); 77 ~GesturePropertyProvider();
78 78
79 // Get a list of device ids that matches a device type. Return true if the 79 // Get a list of device ids that matches a device type. Return true if the
80 // list is not empty. |device_ids| can be NULL. Existing data in |device_ids| 80 // list is not empty. |device_ids| can be NULL. Existing data in |device_ids|
81 // won't be deleted. 81 // won't be deleted.
82 bool GetDeviceIdsByType(const EventDeviceType type, 82 bool GetDeviceIdsByType(const EventDeviceType type,
83 std::vector<DeviceId>* device_ids); 83 std::vector<DeviceId>* device_ids);
84 84
85 // Check if a device id matches a device type. Return true if it matches.
86 // Return false if it doesn't match or if it doesn't use
87 // the GesturePropertyProvider.
88 bool IsDeviceIdOfType(const DeviceId device_id, const EventDeviceType type);
89
85 // Get the GesturesProp object. Returns NULL if not found. 90 // Get the GesturesProp object. Returns NULL if not found.
86 // 91 //
87 // The user may use the object returned to set/get the property value in the 92 // The user may use the object returned to set/get the property value in the
88 // gesture library's memory. Note that the values in preferences are not 93 // gesture library's memory. Note that the values in preferences are not
89 // synced with the ones here in realtime - they are only applied from the 94 // synced with the ones here in realtime - they are only applied from the
90 // preference side in a single way once appropriate (e.g., when the user 95 // preference side in a single way once appropriate (e.g., when the user
91 // clicked "OK"). 96 // clicked "OK").
92 GesturesProp* GetProperty(const DeviceId device_id, const std::string& name); 97 GesturesProp* GetProperty(const DeviceId device_id, const std::string& name);
93 98
94 private: 99 private:
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // Handler function pointers and the data to be passed to them when the 324 // Handler function pointers and the data to be passed to them when the
320 // property is accessed. 325 // property is accessed.
321 GesturesPropGetHandler get_; 326 GesturesPropGetHandler get_;
322 GesturesPropSetHandler set_; 327 GesturesPropSetHandler set_;
323 void* handler_data_; 328 void* handler_data_;
324 329
325 DISALLOW_COPY_AND_ASSIGN(GesturesProp); 330 DISALLOW_COPY_AND_ASSIGN(GesturesProp);
326 }; 331 };
327 332
328 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_PROPERTY_PROVIDER_H_ 333 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_PROPERTY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698