| Index: chrome/browser/chromeos/system/fake_input_device_settings.cc
|
| diff --git a/chrome/browser/chromeos/system/fake_input_device_settings.cc b/chrome/browser/chromeos/system/fake_input_device_settings.cc
|
| index d673c19bf3c30fa345f636257227c005b800877b..6638773d7c1ad5e29e778da3bf775154382ee333 100644
|
| --- a/chrome/browser/chromeos/system/fake_input_device_settings.cc
|
| +++ b/chrome/browser/chromeos/system/fake_input_device_settings.cc
|
| @@ -14,7 +14,7 @@ FakeInputDeviceSettings::~FakeInputDeviceSettings() {}
|
| // Overriden from InputDeviceSettings.
|
| void FakeInputDeviceSettings::TouchpadExists(
|
| const DeviceExistsCallback& callback) {
|
| - callback.Run(true);
|
| + callback.Run(touchpad_exists_);
|
| }
|
|
|
| void FakeInputDeviceSettings::UpdateTouchpadSettings(
|
| @@ -54,7 +54,7 @@ void FakeInputDeviceSettings::SetNaturalScroll(bool enabled) {
|
|
|
| void FakeInputDeviceSettings::MouseExists(
|
| const DeviceExistsCallback& callback) {
|
| - callback.Run(false);
|
| + callback.Run(mouse_exists_);
|
| }
|
|
|
| void FakeInputDeviceSettings::UpdateMouseSettings(
|
| @@ -80,5 +80,27 @@ void FakeInputDeviceSettings::ReapplyTouchpadSettings() {
|
| void FakeInputDeviceSettings::ReapplyMouseSettings() {
|
| }
|
|
|
| +InputDeviceSettings::FakeInterface*
|
| +FakeInputDeviceSettings::GetFakeInterface() {
|
| + return this;
|
| +}
|
| +
|
| +void FakeInputDeviceSettings::set_touchpad_exists(bool exists) {
|
| + touchpad_exists_ = exists;
|
| +}
|
| +
|
| +void FakeInputDeviceSettings::set_mouse_exists(bool exists) {
|
| + mouse_exists_ = exists;
|
| +}
|
| +
|
| +const TouchpadSettings& FakeInputDeviceSettings::current_touchpad_settings()
|
| + const {
|
| + return current_touchpad_settings_;
|
| +}
|
| +
|
| +const MouseSettings& FakeInputDeviceSettings::current_mouse_settings() const {
|
| + return current_mouse_settings_;
|
| +}
|
| +
|
| } // namespace system
|
| } // namespace chromeos
|
|
|