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

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

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
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 #include "chrome/browser/notifications/notification_ui_manager.h"
6
7 #include "chrome/browser/notifications/balloon_collection.h"
8 #include "chrome/browser/notifications/notification_ui_manager_impl.h"
9
10 // static
11 NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
12 return Create(local_state, BalloonCollection::Create());
13 }
14
15 #if !defined(OS_MACOSX)
16 // static
17 NotificationUIManager* NotificationUIManager::Create(
18 PrefService* local_state,
19 BalloonCollection* balloons) {
20 NotificationUIManagerImpl* instance =
21 new NotificationUIManagerImpl(local_state);
22 instance->Initialize(balloons);
23 balloons->set_space_change_listener(instance);
24 return instance;
25 }
26 #endif // !OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager.h ('k') | chrome/browser/notifications/notification_ui_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698