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

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

Issue 7493077: Add pref entry for virtual keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
6 #define CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 6 #define CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 // the preferences. These include touchpad settings, etc. 22 // the preferences. These include touchpad settings, etc.
23 // When the preferences change, we change the settings to reflect the new value. 23 // When the preferences change, we change the settings to reflect the new value.
24 class Preferences : public NotificationObserver { 24 class Preferences : public NotificationObserver {
25 public: 25 public:
26 Preferences(); 26 Preferences();
27 virtual ~Preferences(); 27 virtual ~Preferences();
28 28
29 // This method will register the prefs associated with Chrome OS settings. 29 // This method will register the prefs associated with Chrome OS settings.
30 static void RegisterUserPrefs(PrefService* prefs); 30 static void RegisterUserPrefs(PrefService* prefs);
31 31
32 // This method is called when kLanguagePreferredVirtualKeyboard is updated to
33 // change the virtual keyboard settings to reflect the new value.
34 static void UpdateVirturalKeyboardPreference(PrefService* prefs);
35
32 // This method will initialize Chrome OS settings to values in user prefs. 36 // This method will initialize Chrome OS settings to values in user prefs.
33 void Init(PrefService* prefs); 37 void Init(PrefService* prefs);
34 38
35 // Overridden from NotificationObserver: 39 // Overridden from NotificationObserver:
36 virtual void Observe(int type, 40 virtual void Observe(int type,
37 const NotificationSource& source, 41 const NotificationSource& source,
38 const NotificationDetails& details); 42 const NotificationDetails& details);
39 43
40 private: 44 private:
41 // This will set the OS settings when the preference changes. 45 // This will set the OS settings when the preference changes.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 BooleanPrefMember enable_screen_lock_; 129 BooleanPrefMember enable_screen_lock_;
126 130
127 BooleanPrefMember use_shared_proxies_; 131 BooleanPrefMember use_shared_proxies_;
128 132
129 DISALLOW_COPY_AND_ASSIGN(Preferences); 133 DISALLOW_COPY_AND_ASSIGN(Preferences);
130 }; 134 };
131 135
132 } // namespace chromeos 136 } // namespace chromeos
133 137
134 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 138 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/virtual_keyboard_selector_unittest.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698