OLD | NEW |
---|---|
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 #include "chrome/browser/chromeos/system/input_device_settings.h" | 5 #include "chrome/browser/chromeos/system/input_device_settings.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
287 device_data_manager->EnableDevice(xi_dev_list[i].deviceid); | 287 device_data_manager->EnableDevice(xi_dev_list[i].deviceid); |
288 else | 288 else |
289 device_data_manager->DisableDevice(xi_dev_list[i].deviceid); | 289 device_data_manager->DisableDevice(xi_dev_list[i].deviceid); |
290 | 290 |
291 return; | 291 return; |
292 } | 292 } |
293 } | 293 } |
294 } | 294 } |
295 | 295 |
296 void InputDeviceSettingsImplX11::SetTouchscreensEnabled(bool enabled) { | 296 void InputDeviceSettingsImplX11::SetTouchscreensEnabled(bool enabled) { |
297 ui::SetTouchEventsEnabled(enabled); | 297 ui::SetTouchEventsCrOsMasterSwitch(enabled); |
oshima
2015/11/18 22:49:41
It's also be more consistent if we can do somethin
| |
298 } | 298 } |
299 | 299 |
300 void InputDeviceSettingsImplX11::GenerateTouchpadArguments( | 300 void InputDeviceSettingsImplX11::GenerateTouchpadArguments( |
301 std::vector<std::string>* argv) { | 301 std::vector<std::string>* argv) { |
302 argv->push_back(kInputControl); | 302 argv->push_back(kInputControl); |
303 if (current_touchpad_settings_.IsSensitivitySet()) { | 303 if (current_touchpad_settings_.IsSensitivitySet()) { |
304 AddSensitivityArguments(kDeviceTypeTouchpad, | 304 AddSensitivityArguments(kDeviceTypeTouchpad, |
305 current_touchpad_settings_.GetSensitivity(), argv); | 305 current_touchpad_settings_.GetSensitivity(), argv); |
306 } | 306 } |
307 if (current_touchpad_settings_.IsTapToClickSet()) { | 307 if (current_touchpad_settings_.IsTapToClickSet()) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
351 void InputDeviceSettings::SetSettingsForTesting( | 351 void InputDeviceSettings::SetSettingsForTesting( |
352 InputDeviceSettings* test_settings) { | 352 InputDeviceSettings* test_settings) { |
353 if (g_test_instance == test_settings) | 353 if (g_test_instance == test_settings) |
354 return; | 354 return; |
355 delete g_test_instance; | 355 delete g_test_instance; |
356 g_test_instance = test_settings; | 356 g_test_instance = test_settings; |
357 } | 357 } |
358 | 358 |
359 } // namespace system | 359 } // namespace system |
360 } // namespace chromeos | 360 } // namespace chromeos |
OLD | NEW |