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

Unified 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: Address comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_ui_manager.cc
diff --git a/chrome/browser/notifications/notification_ui_manager.cc b/chrome/browser/notifications/notification_ui_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5f3d720c4b008a245ac6c3ad438413a86d35afd1
--- /dev/null
+++ b/chrome/browser/notifications/notification_ui_manager.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/notifications/notification_ui_manager.h"
+
+#include "chrome/browser/notifications/notification_ui_manager_impl.h"
+
+// static
+NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
+ return Create(local_state, BalloonCollection::Create());
jianli 2012/04/10 00:54:14 nit: seems that we need to include balloon_collect
Robert Sesek 2012/04/12 17:48:47 Done.
+}
+
+#if !defined(OS_MACOSX)
+// static
+NotificationUIManager* NotificationUIManager::Create(
+ PrefService* local_state,
+ BalloonCollection* balloons) {
+ NotificationUIManagerImpl* instance =
+ new NotificationUIManagerImpl(local_state);
+ instance->Initialize(balloons);
+ balloons->set_space_change_listener(instance);
+ return instance;
+}
+#endif // !OS_MACOSX

Powered by Google App Engine
This is Rietveld 408576698