| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_ | |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_ | |
| 7 | |
| 8 #include "chrome/browser/notifications/balloon_collection.h" | |
| 9 | |
| 10 class PrefService; | |
| 11 class PrefRegistrySimple; | |
| 12 | |
| 13 // This interface is used to access and mutate the preferences related to | |
| 14 // desktop notifications. | |
| 15 class NotificationPrefsManager { | |
| 16 public: | |
| 17 explicit NotificationPrefsManager(PrefService* prefs); | |
| 18 virtual ~NotificationPrefsManager() {} | |
| 19 | |
| 20 // Registers preferences. | |
| 21 static void RegisterPrefs(PrefRegistrySimple* registry); | |
| 22 | |
| 23 // Gets the preference indicating where notifications should be placed. | |
| 24 virtual BalloonCollection::PositionPreference | |
| 25 GetPositionPreference() const = 0; | |
| 26 | |
| 27 // Sets the preference that indicates where notifications should | |
| 28 // be placed on the screen. | |
| 29 virtual void SetPositionPreference( | |
| 30 BalloonCollection::PositionPreference preference) = 0; | |
| 31 | |
| 32 protected: | |
| 33 NotificationPrefsManager() {} | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager); | |
| 37 }; | |
| 38 | |
| 39 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_ | |
| OLD | NEW |