| OLD | NEW |
| 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_DEVICES_X11_DEVICE_DATA_MANAGER_X11_H_ | 5 #ifndef UI_EVENTS_DEVICES_X11_DEVICE_DATA_MANAGER_X11_H_ |
| 6 #define UI_EVENTS_DEVICES_X11_DEVICE_DATA_MANAGER_X11_H_ | 6 #define UI_EVENTS_DEVICES_X11_DEVICE_DATA_MANAGER_X11_H_ |
| 7 | 7 |
| 8 // Generically-named #defines from Xlib is conflicting with symbols in GTest. | 8 // Generically-named #defines from Xlib is conflicting with symbols in GTest. |
| 9 // So many tests .cc file #undef Bool before including device_data_manager.h, | 9 // So many tests .cc file #undef Bool before including device_data_manager.h, |
| 10 // which makes Bool unrecognized in XInput2.h. | 10 // which makes Bool unrecognized in XInput2.h. |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 int* finger_count); | 193 int* finger_count); |
| 194 | 194 |
| 195 // Extract data from a scroll class event (smooth scrolling). User must | 195 // Extract data from a scroll class event (smooth scrolling). User must |
| 196 // first verify the event type with GetScrollClassEventDetail. | 196 // first verify the event type with GetScrollClassEventDetail. |
| 197 // Pointers shouldn't be NULL. | 197 // Pointers shouldn't be NULL. |
| 198 void GetScrollClassOffsets(const XEvent& xev, | 198 void GetScrollClassOffsets(const XEvent& xev, |
| 199 double* x_offset, | 199 double* x_offset, |
| 200 double* y_offset); | 200 double* y_offset); |
| 201 | 201 |
| 202 // Invalidate stored scroll class counters, since they can change when | 202 // Invalidate stored scroll class counters, since they can change when |
| 203 // pointing at other windows. | 203 // pointing at other windows. If ID -1 is specified, all devices are |
| 204 void InvalidateScrollClasses(); | 204 // invalidated. |
| 205 void InvalidateScrollClasses(int device_id); |
| 205 | 206 |
| 206 // Extract data from a fling event. User must first verify the event type | 207 // Extract data from a fling event. User must first verify the event type |
| 207 // with IsFlingEvent. Pointers shouldn't be NULL. | 208 // with IsFlingEvent. Pointers shouldn't be NULL. |
| 208 void GetFlingData(const XEvent& xev, | 209 void GetFlingData(const XEvent& xev, |
| 209 float* vx, | 210 float* vx, |
| 210 float* vy, | 211 float* vy, |
| 211 float* vx_ordinal, | 212 float* vx_ordinal, |
| 212 float* vy_ordinal, | 213 float* vy_ordinal, |
| 213 bool* is_cancel); | 214 bool* is_cancel); |
| 214 | 215 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 391 |
| 391 unsigned char button_map_[256]; | 392 unsigned char button_map_[256]; |
| 392 int button_map_count_; | 393 int button_map_count_; |
| 393 | 394 |
| 394 DISALLOW_COPY_AND_ASSIGN(DeviceDataManagerX11); | 395 DISALLOW_COPY_AND_ASSIGN(DeviceDataManagerX11); |
| 395 }; | 396 }; |
| 396 | 397 |
| 397 } // namespace ui | 398 } // namespace ui |
| 398 | 399 |
| 399 #endif // UI_EVENTS_DEVICES_X11_DEVICE_DATA_MANAGER_X11_H_ | 400 #endif // UI_EVENTS_DEVICES_X11_DEVICE_DATA_MANAGER_X11_H_ |
| OLD | NEW |