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

Unified Diff: chrome/browser/ui/cocoa/notifications/notification_delivery.h

Issue 2402303002: Implement the ability to close alerts programatically (Closed)
Patch Set: review Created 4 years, 2 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
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/alert_notification_service.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/notifications/notification_delivery.h
diff --git a/chrome/browser/ui/cocoa/notifications/notification_delivery.h b/chrome/browser/ui/cocoa/notifications/notification_delivery.h
index e19593f4e45fe8dd85e01ceaec26642e6b53aefa..8670956d10b7a711b3af3437324eddeb435aec46 100644
--- a/chrome/browser/ui/cocoa/notifications/notification_delivery.h
+++ b/chrome/browser/ui/cocoa/notifications/notification_delivery.h
@@ -16,6 +16,12 @@
// |notificationData| is generated using a NofiticationBuilder object.
- (void)deliverNotification:(NSDictionary*)notificationData;
+// Closes an alert with the given |notificationId| and |profileId|.
+- (void)closeNotificationWithId:(NSString*)notificationId
+ withProfileId:(NSString*)profileId;
+
+// Closes all the alerts being displayed.
+- (void)closeAllNotifications;
@end
// Response protocol for the XPC notification service to notify Chrome of
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/alert_notification_service.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698