| 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_;
|
|
|
|
|