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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.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
« no previous file with comments | « no previous file | ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc » ('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 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_INTERPRETER_LIBEVDEV_CROS _H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_ 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch); 78 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch);
79 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics); 79 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics);
80 80
81 void Dispatch(scoped_ptr<Event> event); 81 void Dispatch(scoped_ptr<Event> event);
82 void DispatchMouseButton(unsigned int modifier, bool down); 82 void DispatchMouseButton(unsigned int modifier, bool down);
83 void DispatchChangedKeys(Evdev* evdev, const timeval& time); 83 void DispatchChangedKeys(Evdev* evdev, const timeval& time);
84 84
85 // The unique device id. 85 // The unique device id.
86 int id_; 86 int id_;
87 87
88 // True if the device may be regarded as a mouse. This includes normal mice
89 // and multi-touch mice.
90 bool is_mouse_;
91
88 // Shared modifier state. 92 // Shared modifier state.
89 EventModifiersEvdev* modifiers_; 93 EventModifiersEvdev* modifiers_;
90 94
91 // Shared mouse button map. 95 // Shared mouse button map.
92 MouseButtonMapEvdev* button_map_; 96 MouseButtonMapEvdev* button_map_;
93 97
94 // Shared cursor state. 98 // Shared cursor state.
95 CursorDelegateEvdev* cursor_; 99 CursorDelegateEvdev* cursor_;
96 100
97 // Shared keyboard state. 101 // Shared keyboard state.
(...skipping 16 matching lines...) Expand all
114 118
115 // Gesture lib device properties. 119 // Gesture lib device properties.
116 scoped_ptr<GestureDeviceProperties> device_properties_; 120 scoped_ptr<GestureDeviceProperties> device_properties_;
117 121
118 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); 122 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros);
119 }; 123 };
120 124
121 } // namspace ui 125 } // namspace ui
122 126
123 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C ROS_H_ 127 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C ROS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698