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

Unified Diff: chrome/browser/notifications/balloon_collection.h

Issue 363003: Implement cancel() API on a Notification object so that script can cancel or ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/notifications/balloon.cc ('k') | chrome/browser/notifications/balloon_collection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/balloon_collection.h
===================================================================
--- chrome/browser/notifications/balloon_collection.h (revision 30967)
+++ chrome/browser/notifications/balloon_collection.h (working copy)
@@ -26,6 +26,10 @@
virtual void Add(const Notification& notification,
Profile* profile) = 0;
+ // Removes a balloon from the collection if present. Returns
+ // true if anything was removed.
+ virtual bool Remove(const Notification& notification) = 0;
+
// Is there room to add another notification?
virtual bool HasSpace() const = 0;
};
@@ -59,6 +63,7 @@
// BalloonCollectionInterface overrides
virtual void Add(const Notification& notification,
Profile* profile);
+ virtual bool Remove(const Notification& notification);
virtual bool HasSpace() const;
// Balloon::BalloonCloseListener interface
« no previous file with comments | « chrome/browser/notifications/balloon.cc ('k') | chrome/browser/notifications/balloon_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698