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

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

Issue 2110833003: MD Settings: Add mouse settings, update pointer settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PointersFake
Patch Set: Created 4 years, 5 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
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 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 static InputDeviceSettings* Get(); 162 static InputDeviceSettings* Get();
163 163
164 // Returns test instance of InputDeviceSettings. 164 // Returns test instance of InputDeviceSettings.
165 static FakeInputDeviceSettings* GetForTesting(); 165 static FakeInputDeviceSettings* GetForTesting();
166 166
167 // Replaces current instance with |test_settings|. Takes ownership of 167 // Replaces current instance with |test_settings|. Takes ownership of
168 // |test_settings|. Default implementation could be returned back by passing 168 // |test_settings|. Default implementation could be returned back by passing
169 // NULL to this method. 169 // NULL to this method.
170 static void SetSettingsForTesting(FakeInputDeviceSettings* test_settings); 170 static void SetSettingsForTesting(FakeInputDeviceSettings* test_settings);
171 171
172 // Returns true if the current instance was passed to SetSettingsForTesting.
173 static bool DidSetSettingsForTesting();
174
172 // Returns true if UI should implement enhanced keyboard support for cases 175 // Returns true if UI should implement enhanced keyboard support for cases
173 // where other input devices like mouse are absent. 176 // where other input devices like mouse are absent.
174 static bool ForceKeyboardDrivenUINavigation(); 177 static bool ForceKeyboardDrivenUINavigation();
175 178
176 // Registers local pref names for touchpad and touch screen statuses. 179 // Registers local pref names for touchpad and touch screen statuses.
177 static void RegisterPrefs(PrefRegistrySimple* registry); 180 static void RegisterPrefs(PrefRegistrySimple* registry);
178 181
179 void InitTouchDevicesStatusFromLocalPrefs(); 182 void InitTouchDevicesStatusFromLocalPrefs();
180 183
181 // Toggles the status of Touchscreen/Touchpad on or off and updates the local 184 // Toggles the status of Touchscreen/Touchpad on or off and updates the local
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 235
233 private: 236 private:
234 virtual void SetInternalTouchpadEnabled(bool enabled) {} 237 virtual void SetInternalTouchpadEnabled(bool enabled) {}
235 virtual void SetTouchscreensEnabled(bool enabled) {} 238 virtual void SetTouchscreensEnabled(bool enabled) {}
236 }; 239 };
237 240
238 } // namespace system 241 } // namespace system
239 } // namespace chromeos 242 } // namespace chromeos
240 243
241 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ 244 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698