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

Side by Side Diff: chrome/browser/chromeos/touchpad.h

Issue 227008: Add touchpad sensitivity setting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/settings_contents_view.cc ('k') | chrome/browser/chromeos/touchpad.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TOUCHPAD_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_TOUCHPAD_H_
6 #define CHROME_BROWSER_CHROMEOS_TOUCHPAD_H_ 6 #define CHROME_BROWSER_CHROMEOS_TOUCHPAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
(...skipping 25 matching lines...) Expand all
36 virtual void Observe(NotificationType type, 36 virtual void Observe(NotificationType type,
37 const NotificationSource& source, 37 const NotificationSource& source,
38 const NotificationDetails& details); 38 const NotificationDetails& details);
39 39
40 protected: 40 protected:
41 virtual void NotifyPrefChanged(const std::wstring* pref_name); 41 virtual void NotifyPrefChanged(const std::wstring* pref_name);
42 42
43 private: 43 private:
44 // This methods makes a system call to synclient to change touchpad settings. 44 // This methods makes a system call to synclient to change touchpad settings.
45 // The system call will be invoked on the file thread. 45 // The system call will be invoked on the file thread.
46 void SetSynclientParam(const std::string& param, const std::string& value); 46 void SetSynclientParam(const std::string& param, double value);
47 47
48 // Set tap-to-click to value stored in preference. 48 // Set tap-to-click to value stored in preferences.
49 void SetTapToClick(); 49 void SetTapToClick();
50 50
51 // Set vertical edge scrolling to value stored in preference. 51 // Set vertical edge scrolling to value stored in preferences.
52 void SetVertEdgeScroll(); 52 void SetVertEdgeScroll();
53 53
54 // Set touchpad speed factor to value stored in preference. 54 // Set touchpad speed factor to value stored in preferences.
55 void SetSpeedFactor(); 55 void SetSpeedFactor();
56 56
57 // Set tap sensitivity to value stored in preferences.
58 void SetSensitivity();
59
57 BooleanPrefMember tap_to_click_enabled_; 60 BooleanPrefMember tap_to_click_enabled_;
58 BooleanPrefMember vert_edge_scroll_enabled_; 61 BooleanPrefMember vert_edge_scroll_enabled_;
59 RealPrefMember speed_factor_; 62 IntegerPrefMember speed_factor_;
63 IntegerPrefMember sensitivity_;
60 64
61 DISALLOW_COPY_AND_ASSIGN(Touchpad); 65 DISALLOW_COPY_AND_ASSIGN(Touchpad);
62 }; 66 };
63 67
64 #endif // CHROME_BROWSER_CHROMEOS_TOUCHPAD_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_TOUCHPAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings_contents_view.cc ('k') | chrome/browser/chromeos/touchpad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698