| 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/fake_input_device_settings.h" | 5 #include "chrome/browser/chromeos/system/fake_input_device_settings.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 namespace system { | 8 namespace system { |
| 9 | 9 |
| 10 FakeInputDeviceSettings::FakeInputDeviceSettings() {} | 10 FakeInputDeviceSettings::FakeInputDeviceSettings() {} |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 settings.SetThreeFingerClick(enabled); | 39 settings.SetThreeFingerClick(enabled); |
| 40 UpdateTouchpadSettings(settings); | 40 UpdateTouchpadSettings(settings); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void FakeInputDeviceSettings::SetTapDragging(bool enabled) { | 43 void FakeInputDeviceSettings::SetTapDragging(bool enabled) { |
| 44 TouchpadSettings settings; | 44 TouchpadSettings settings; |
| 45 settings.SetTapDragging(enabled); | 45 settings.SetTapDragging(enabled); |
| 46 UpdateTouchpadSettings(settings); | 46 UpdateTouchpadSettings(settings); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void FakeInputDeviceSettings::SetNaturalScroll(bool enabled) { | |
| 50 TouchpadSettings settings; | |
| 51 settings.SetNaturalScroll(enabled); | |
| 52 UpdateTouchpadSettings(settings); | |
| 53 } | |
| 54 | |
| 55 void FakeInputDeviceSettings::MouseExists( | 49 void FakeInputDeviceSettings::MouseExists( |
| 56 const DeviceExistsCallback& callback) { | 50 const DeviceExistsCallback& callback) { |
| 57 callback.Run(false); | 51 callback.Run(false); |
| 58 } | 52 } |
| 59 | 53 |
| 60 void FakeInputDeviceSettings::UpdateMouseSettings( | 54 void FakeInputDeviceSettings::UpdateMouseSettings( |
| 61 const MouseSettings& settings) { | 55 const MouseSettings& settings) { |
| 62 current_mouse_settings_.Update(settings, NULL); | 56 current_mouse_settings_.Update(settings, NULL); |
| 63 } | 57 } |
| 64 | 58 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 79 } | 73 } |
| 80 | 74 |
| 81 void FakeInputDeviceSettings::ReapplyTouchpadSettings() { | 75 void FakeInputDeviceSettings::ReapplyTouchpadSettings() { |
| 82 } | 76 } |
| 83 | 77 |
| 84 void FakeInputDeviceSettings::ReapplyMouseSettings() { | 78 void FakeInputDeviceSettings::ReapplyMouseSettings() { |
| 85 } | 79 } |
| 86 | 80 |
| 87 } // namespace system | 81 } // namespace system |
| 88 } // namespace chromeos | 82 } // namespace chromeos |
| OLD | NEW |