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

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

Issue 553153004: Chrome OS Touchpad Settings: Always update natural scrolling pref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/input_device_settings.h" 5 #include "chrome/browser/chromeos/system/input_device_settings.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 if (argv) 346 if (argv)
347 AddTPControlArguments("t5r2_three_finger_click", 347 AddTPControlArguments("t5r2_three_finger_click",
348 three_finger_click_.value(), 348 three_finger_click_.value(),
349 argv); 349 argv);
350 } 350 }
351 if (tap_dragging_.Update(settings.tap_dragging_)) { 351 if (tap_dragging_.Update(settings.tap_dragging_)) {
352 updated = true; 352 updated = true;
353 if (argv) 353 if (argv)
354 AddTPControlArguments("tapdrag", tap_dragging_.value(), argv); 354 AddTPControlArguments("tapdrag", tap_dragging_.value(), argv);
355 } 355 }
356 if (natural_scroll_.Update(settings.natural_scroll_)) { 356 natural_scroll_.Update(settings.natural_scroll_);
357 // Always send natural scrolling to the shell command, as a workaround.
358 // See crbug.com/406480
359 if (natural_scroll_.is_set()) {
357 updated = true; 360 updated = true;
358 if (argv) 361 if (argv)
359 AddTPControlArguments("australian_scrolling", natural_scroll_.value(), 362 AddTPControlArguments("australian_scrolling", natural_scroll_.value(),
360 argv); 363 argv);
361 } 364 }
362 return updated; 365 return updated;
363 } 366 }
364 367
365 MouseSettings::MouseSettings() {} 368 MouseSettings::MouseSettings() {}
366 369
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 void InputDeviceSettings::SetSettingsForTesting( 424 void InputDeviceSettings::SetSettingsForTesting(
422 InputDeviceSettings* test_settings) { 425 InputDeviceSettings* test_settings) {
423 if (g_test_instance_ == test_settings) 426 if (g_test_instance_ == test_settings)
424 return; 427 return;
425 delete g_test_instance_; 428 delete g_test_instance_;
426 g_test_instance_ = test_settings; 429 g_test_instance_ = test_settings;
427 } 430 }
428 431
429 } // namespace system 432 } // namespace system
430 } // namespace chromeos 433 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698