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

Side by Side Diff: ui/events/devices/x11/device_data_manager_x11.h

Issue 2077163003: Reduced number of UpdateDeviceList calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Applied comments, added functionality to only invalidate current scroll device Created 4 years, 6 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_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
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 no ID is specified, all devices are
204 void InvalidateScrollClasses(); 204 // invalidated.
205 void InvalidateScrollClasses(int device_id = -1);
sadrul 2016/06/27 14:49:21 Remove the default param-value. Document that usin
Will Shackleton 2016/07/12 16:05:04 Done.
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/events/devices/x11/device_data_manager_x11.cc » ('j') | ui/events/platform/x11/x11_event_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698