OLD | NEW |
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/prefs/pref_registry_simple.h" | |
8 #include "base/prefs/pref_service.h" | |
9 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 8 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
11 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 9 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
12 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
13 #include "chromeos/system/statistics_provider.h" | 11 #include "chromeos/system/statistics_provider.h" |
| 12 #include "components/prefs/pref_registry_simple.h" |
| 13 #include "components/prefs/pref_service.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 namespace system { | 16 namespace system { |
17 | 17 |
18 TouchpadSettings::TouchpadSettings() { | 18 TouchpadSettings::TouchpadSettings() { |
19 } | 19 } |
20 | 20 |
21 TouchpadSettings& TouchpadSettings::operator=(const TouchpadSettings& other) { | 21 TouchpadSettings& TouchpadSettings::operator=(const TouchpadSettings& other) { |
22 if (&other != this) { | 22 if (&other != this) { |
23 sensitivity_ = other.sensitivity_; | 23 sensitivity_ = other.sensitivity_; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 local_state->HasPrefPath(::prefs::kTouchPadEnabled) | 264 local_state->HasPrefPath(::prefs::kTouchPadEnabled) |
265 ? local_state->GetBoolean(::prefs::kTouchPadEnabled) | 265 ? local_state->GetBoolean(::prefs::kTouchPadEnabled) |
266 : true; | 266 : true; |
267 | 267 |
268 local_state->SetBoolean(::prefs::kTouchPadEnabled, !touch_pad_status); | 268 local_state->SetBoolean(::prefs::kTouchPadEnabled, !touch_pad_status); |
269 SetInternalTouchpadEnabled(!touch_pad_status); | 269 SetInternalTouchpadEnabled(!touch_pad_status); |
270 } | 270 } |
271 | 271 |
272 } // namespace system | 272 } // namespace system |
273 } // namespace chromeos | 273 } // namespace chromeos |
OLD | NEW |