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

Unified Diff: ui/events/x/touch_factory_x11.h

Issue 59903023: Plumb maxTouchPoints for AuraX11 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rename MaxTouchPoints() to GetMaxTouchPoints() Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/touch/touch_device_aurax11.cc ('k') | ui/events/x/touch_factory_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/touch_factory_x11.h
diff --git a/ui/events/x/touch_factory_x11.h b/ui/events/x/touch_factory_x11.h
index 6fb023731d0b01fb22a7390d1971a73eeefa86fc..5c1af4113ec56ecf3c6932093f094a462e45cbe1 100644
--- a/ui/events/x/touch_factory_x11.h
+++ b/ui/events/x/touch_factory_x11.h
@@ -72,6 +72,9 @@ class EVENTS_BASE_EXPORT TouchFactory {
// Whether any touch device is currently present and enabled.
bool IsTouchDevicePresent();
+ // Return maximum simultaneous touch points supported by device.
+ int GetMaxTouchPoints() const;
+
// Sets up the device id in the list |devices| as multi-touch capable
// devices and enables touch events processing. This function is only
// for test purpose, and it does not query from X server.
@@ -110,8 +113,11 @@ class EVENTS_BASE_EXPORT TouchFactory {
// capable.
std::map<int, bool> touch_device_list_;
- // Maximum simultaneous touch points.
- static const int kMaxTouchPoints = 32;
+ // Maximum simultaneous touch points supported by device. In the case of
+ // devices with multiple digitizers (e.g. multiple touchscreens), the value
+ // is the maximum of the set of maximum supported contacts by each individual
+ // digitizer.
+ int max_touch_points_;
SequentialIDGenerator id_generator_;
« no previous file with comments | « ui/base/touch/touch_device_aurax11.cc ('k') | ui/events/x/touch_factory_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698