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.
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
8 #include "chrome/browser/notifications/balloon_collection.h"
12 // This interface is used to access and mutate the preferences related to
13 // desktop notifications.
14 class NotificationPrefsManager
{
16 virtual ~NotificationPrefsManager() {}
18 // Registers preferences.
19 static void RegisterPrefs(PrefService
* prefs
);
21 // Gets the preference indicating where notifications should be placed.
22 virtual BalloonCollection::PositionPreference
23 GetPositionPreference() const = 0;
25 // Sets the preference that indicates where notifications should
26 // be placed on the screen.
27 virtual void SetPositionPreference(
28 BalloonCollection::PositionPreference preference
) = 0;
31 NotificationPrefsManager() {}
34 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager
);
37 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_