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

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

Issue 2402303002: Implement the ability to close alerts programatically (Closed)
Patch Set: 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
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..e64b13823d7bbf710d4d1fb31a03c099955983e5 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)closeNotification:(NSString*)notificationId
Robert Sesek 2016/10/10 18:22:47 I'd name this -closeNotificationWithId:withProfile
Miguel Garcia 2016/10/11 11:55:41 Done.
+ withProfile:(NSString*)profileId;
+
+// Closes all the alerts being displayed.
+- (void)closeAllNotifications;
@end
// Response protocol for the XPC notification service to notify Chrome of

Powered by Google App Engine
This is Rietveld 408576698