| 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 |
| 49 void FakeInputDeviceSettings::MouseExists( | 55 void FakeInputDeviceSettings::MouseExists( |
| 50 const DeviceExistsCallback& callback) { | 56 const DeviceExistsCallback& callback) { |
| 51 callback.Run(false); | 57 callback.Run(false); |
| 52 } | 58 } |
| 53 | 59 |
| 54 void FakeInputDeviceSettings::UpdateMouseSettings( | 60 void FakeInputDeviceSettings::UpdateMouseSettings( |
| 55 const MouseSettings& settings) { | 61 const MouseSettings& settings) { |
| 56 current_mouse_settings_.Update(settings, NULL); | 62 current_mouse_settings_.Update(settings, NULL); |
| 57 } | 63 } |
| 58 | 64 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 73 } | 79 } |
| 74 | 80 |
| 75 void FakeInputDeviceSettings::ReapplyTouchpadSettings() { | 81 void FakeInputDeviceSettings::ReapplyTouchpadSettings() { |
| 76 } | 82 } |
| 77 | 83 |
| 78 void FakeInputDeviceSettings::ReapplyMouseSettings() { | 84 void FakeInputDeviceSettings::ReapplyMouseSettings() { |
| 79 } | 85 } |
| 80 | 86 |
| 81 } // namespace system | 87 } // namespace system |
| 82 } // namespace chromeos | 88 } // namespace chromeos |
| OLD | NEW |