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

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

Issue 10021026: [Mac] Implement a NotificationUIManager that uses Notification Center on 10.8 for text notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 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
« no previous file with comments | « base/mac/cocoa_protocols.h ('k') | chrome/browser/notifications/notification_ui_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h"
13
12 class BalloonCollection; 14 class BalloonCollection;
13 class GURL; 15 class GURL;
14 class Notification; 16 class Notification;
15 class NotificationPrefsManager; 17 class NotificationPrefsManager;
16 class PrefService; 18 class PrefService;
19 class Profile;
17 20
18 // This virtual interface is used to manage the UI surfaces for desktop 21 // This virtual interface is used to manage the UI surfaces for desktop
19 // notifications. There is one instance per profile. 22 // notifications. There is one instance per profile.
20 class NotificationUIManager { 23 class NotificationUIManager {
21 public: 24 public:
22 virtual ~NotificationUIManager() {} 25 virtual ~NotificationUIManager() {}
23 26
24 // Creates an initialized UI manager with a new balloon collection 27 // Creates an initialized UI manager with a new balloon collection
25 // and the listener relationship setup. 28 // and the listener relationship setup.
26 // Except for unit tests, this is the way to construct the object. 29 // Except for unit tests, this is the way to construct the object.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 std::vector<const Notification*>* notifications) {} 64 std::vector<const Notification*>* notifications) {}
62 65
63 protected: 66 protected:
64 NotificationUIManager() {} 67 NotificationUIManager() {}
65 68
66 private: 69 private:
67 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); 70 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager);
68 }; 71 };
69 72
70 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ 73 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_
OLDNEW
« no previous file with comments | « base/mac/cocoa_protocols.h ('k') | chrome/browser/notifications/notification_ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698