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

Side by Side Diff: chrome/browser/chromeos/system/fake_input_device_settings.cc

Issue 212603005: Don't handle NaturalScroll in Chrome but pass it to CMT instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Ash unit tests Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/fake_input_device_settings.h ('k') | chrome/browser/chromeos/system/input_device_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698