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

Unified Diff: chrome/browser/chromeos/preferences.h

Issue 11640032: Delay forcing natural scroll setting until after initial sync. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences.cc » ('j') | chrome/browser/chromeos/preferences.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.h
===================================================================
--- chrome/browser/chromeos/preferences.h (revision 173817)
+++ chrome/browser/chromeos/preferences.h (working copy)
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/prefs/public/pref_member.h"
#include "chrome/browser/chromeos/language_preferences.h"
+#include "chrome/browser/prefs/pref_service_observer.h"
class PrefService;
@@ -23,7 +24,7 @@
// is first initialized, it will initialize the OS settings to what's stored in
// the preferences. These include touchpad settings, etc.
// When the preferences change, we change the settings to reflect the new value.
-class Preferences {
+class Preferences : public PrefServiceObserver {
public:
Preferences();
explicit Preferences(
@@ -90,6 +91,13 @@
// underlying XKB API requires it.
void UpdateAutoRepeatRate();
+ // PrefServiceObserver implementation.
+ virtual void OnIsSyncingChanged() OVERRIDE;
xiyuan 2012/12/20 01:44:28 nit: keep virtual methods after non-virtual ones.
achuithb 2012/12/20 01:53:31 Done.
+
+ // Force natural scroll to on if --enable-natural-scroll-default is specified
+ // on the cmd line.
+ void ForceNaturalScrollDefault();
+
PrefService* prefs_;
input_method::InputMethodManager* input_method_manager_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences.cc » ('j') | chrome/browser/chromeos/preferences.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698