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

Unified Diff: chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm

Issue 2390153005: Implement support for closing mac native notifications (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/notification_response_builder_mac_unittest.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_service_delegate.mm
diff --git a/chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm b/chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm
index 78118dd48ea9bd6f9f47fbd89acbb239ca57f762..919ad464ef5a5271025968e30b4a83f239a62e01 100644
--- a/chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm
+++ b/chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm
@@ -60,4 +60,12 @@
[[connection_ remoteObjectProxy] notificationClick:response];
}
+// _NSUserNotificationCenterDelegatePrivate
+- (void)userNotificationCenter:(NSUserNotificationCenter*)center
+ didDismissAlert:(NSUserNotification*)notification {
+ NSDictionary* response =
+ [NotificationResponseBuilder buildDictionary:notification];
+ [[connection_ remoteObjectProxy] notificationClick:response];
+}
+
@end
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/notification_response_builder_mac_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698