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

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

Issue 1637873002: Remove unused TouchEventCalibrate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove unnused method. Created 4 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/device_data_manager_x11.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/x11/device_data_manager_x11.cc
diff --git a/ui/events/devices/x11/device_data_manager_x11.cc b/ui/events/devices/x11/device_data_manager_x11.cc
index 0ac4f6d33030048d853de9bb20f58fe6d542bf9e..b0bd0e4b555b9be50f163fda8c074d0c8d342219 100644
--- a/ui/events/devices/x11/device_data_manager_x11.cc
+++ b/ui/events/devices/x11/device_data_manager_x11.cc
@@ -801,20 +801,6 @@ double DeviceDataManagerX11::ExtractAndUpdateScrollOffset(
return offset / axis->increment;
}
-bool DeviceDataManagerX11::TouchEventNeedsCalibrate(int touch_device_id) const {
-#if defined(OS_CHROMEOS)
- if (!base::SysInfo::IsRunningOnChromeOS())
- return false;
-
- const std::vector<TouchscreenDevice>& touch_devices =
- ui::DeviceDataManager::GetInstance()->touchscreen_devices();
- std::vector<TouchscreenDevice>::const_iterator it = FindDeviceWithId(
- touch_devices.begin(), touch_devices.end(), touch_device_id);
- return it != touch_devices.end() && it->type == INPUT_DEVICE_INTERNAL;
-#endif // defined(OS_CHROMEOS)
- return false;
-}
-
void DeviceDataManagerX11::SetDisabledKeyboardAllowedKeys(
scoped_ptr<std::set<KeyboardCode> > excepted_keys) {
DCHECK(!excepted_keys.get() ||
« no previous file with comments | « ui/events/devices/x11/device_data_manager_x11.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698