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

Side by Side Diff: chrome/browser/notifications/notification_prefs_manager.h

Issue 231723006: Remove balloon notification code. The last user was the Linux GTK port but that's deleted now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync after elliot's r263101 Created 6 years, 8 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698