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

Unified Diff: ui/events/devices/x11/touch_factory_x11.cc

Issue 845413002: touch: Change how touch-screen capability is processed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/devices/x11/touch_factory_x11.h ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/x11/touch_factory_x11.cc
diff --git a/ui/events/devices/x11/touch_factory_x11.cc b/ui/events/devices/x11/touch_factory_x11.cc
index 717e0c741f4c7a32ded7c747efb0192e0ecca9aa..1dce5048d6bff599e5ff41b83035b0885c2a4949 100644
--- a/ui/events/devices/x11/touch_factory_x11.cc
+++ b/ui/events/devices/x11/touch_factory_x11.cc
@@ -30,7 +30,6 @@ TouchFactory::TouchFactory()
: pointer_device_lookup_(),
touch_events_disabled_(false),
touch_device_list_(),
- max_touch_points_(-1),
virtual_core_keyboard_device_(-1),
id_generator_(0) {
if (!DeviceDataManagerX11::GetInstance()->IsXInput2Available())
@@ -83,7 +82,6 @@ void TouchFactory::UpdateDeviceList(Display* display) {
touch_device_lookup_.reset();
touch_device_list_.clear();
touchscreen_ids_.clear();
- max_touch_points_ = -1;
// NOTE: The new API for retrieving the list of devices (XIQueryDevice) does
// not provide enough information to detect a touch device. As a result, the
@@ -131,8 +129,6 @@ void TouchFactory::UpdateDeviceList(Display* display) {
if (tci->mode == XIDirectTouch) {
touch_device_lookup_[devinfo->deviceid] = true;
touch_device_list_[devinfo->deviceid] = true;
- if (tci->num_touches > 0 && tci->num_touches > max_touch_points_)
- max_touch_points_ = tci->num_touches;
}
}
}
@@ -268,10 +264,6 @@ bool TouchFactory::IsTouchDevicePresent() {
return !touch_events_disabled_ && touch_device_lookup_.any();
}
-int TouchFactory::GetMaxTouchPoints() const {
- return max_touch_points_;
-}
-
void TouchFactory::ResetForTest() {
pointer_device_lookup_.reset();
touch_device_lookup_.reset();
@@ -279,7 +271,6 @@ void TouchFactory::ResetForTest() {
touch_device_list_.clear();
touchscreen_ids_.clear();
tracking_id_refcounts_.clear();
- max_touch_points_ = -1;
id_generator_.ResetForTest();
}
« no previous file with comments | « ui/events/devices/x11/touch_factory_x11.h ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698