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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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 15 matching lines...) Expand all
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 will initialize Chrome OS settings to values in user prefs. 32 // This method will initialize Chrome OS settings to values in user prefs.
33 void Init(PrefService* prefs); 33 void Init(PrefService* prefs);
34 34
35 // Overridden from NotificationObserver: 35 // Overridden from NotificationObserver:
36 virtual void Observe(NotificationType type, 36 virtual void Observe(int type,
37 const NotificationSource& source, 37 const NotificationSource& source,
38 const NotificationDetails& details); 38 const NotificationDetails& details);
39 39
40 private: 40 private:
41 // This will set the OS settings when the preference changes. 41 // This will set the OS settings when the preference changes.
42 // If this method is called with NULL, it will set all OS settings to what's 42 // If this method is called with NULL, it will set all OS settings to what's
43 // stored in the preferences. 43 // stored in the preferences.
44 void NotifyPrefChanged(const std::string* pref_name); 44 void NotifyPrefChanged(const std::string* pref_name);
45 45
46 // Writes boolean |value| to the input method (IBus) configuration daemon. 46 // Writes boolean |value| to the input method (IBus) configuration daemon.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 IntegerPrefMember language_xkb_auto_repeat_interval_pref_; 122 IntegerPrefMember language_xkb_auto_repeat_interval_pref_;
123 123
124 BooleanPrefMember enable_screen_lock_; 124 BooleanPrefMember enable_screen_lock_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(Preferences); 126 DISALLOW_COPY_AND_ASSIGN(Preferences);
127 }; 127 };
128 128
129 } // namespace chromeos 129 } // namespace chromeos
130 130
131 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 131 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/panels/panel_browsertest.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698