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

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

Issue 221363002: Revert of Don't handle NaturalScroll in Chrome but pass it to CMT instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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
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
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