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

Unified Diff: chrome/browser/ui/views/ash/balloon_collection_impl_ash.h

Issue 10537158: Add support for Ash to Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/ui/views/ash/balloon_collection_impl_ash.h
diff --git a/chrome/browser/ui/views/ash/balloon_collection_impl_ash.h b/chrome/browser/ui/views/ash/balloon_collection_impl_ash.h
index d457d6dce3a4cf943e73cf11656bc6f6fe512175..01135317b4a47ed9561d450c8c9fa1ea1187fb44 100644
--- a/chrome/browser/ui/views/ash/balloon_collection_impl_ash.h
+++ b/chrome/browser/ui/views/ash/balloon_collection_impl_ash.h
@@ -8,16 +8,31 @@
#include <set>
+#include "ash/system/web_notification/web_notification_tray.h"
#include "chrome/browser/chromeos/notifications/balloon_view_host_chromeos.h" // MessageCallback
#include "chrome/browser/notifications/balloon_collection_impl.h"
// Wrapper on top of ::BalloonCollectionImpl to provide an interface for
// chromeos::SystemNotification.
-class BalloonCollectionImplAsh : public ::BalloonCollectionImpl {
+class BalloonCollectionImplAsh : public BalloonCollectionImpl,
+ public ash::WebNotificationTray::Delegate {
public:
BalloonCollectionImplAsh();
virtual ~BalloonCollectionImplAsh();
+ // Overridden from BalloonCollectionImpl.
+ virtual void Add(const Notification& notification,
+ Profile* profile) OVERRIDE;
+ virtual bool HasSpace() const OVERRIDE;
+
+ // WebNotificationTray::Delegate interface.
oshima 2012/06/13 23:58:02 Overridden from XX, or change the above for consis
stevenjb 2012/06/14 04:27:35 Done.
+ virtual void NotificationRemoved(const std::string& notifcation_id) OVERRIDE;
+ virtual void DisableExtension(const std::string& notifcation_id) OVERRIDE;
+ virtual void DisableNotificationsFromSource(
+ const std::string& notifcation_id) OVERRIDE;
+ virtual void ShowSettings(const std::string& notifcation_id) OVERRIDE;
+ virtual void OnClicked(const std::string& notifcation_id) OVERRIDE;
+
// Adds a callback for WebUI message. Returns true if the callback
// is succssfully registered, or false otherwise. It fails to add if
// there is no notification that matches NotificationDelegate::id(),

Powered by Google App Engine
This is Rietveld 408576698