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

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

Issue 2390153005: Implement support for closing mac native notifications (Closed)
Patch Set: set upstream to the right diff 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_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..19c03e8680a839fe19b7131c6e6753f2cb9907c6 100644
--- a/chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm
+++ b/chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm
@@ -9,6 +9,7 @@
#include "base/mac/scoped_nsobject.h"
#import "chrome/browser/ui/cocoa/notifications/alert_notification_service.h"
#import "chrome/browser/ui/cocoa/notifications/notification_delivery.h"
+#import "chrome/browser/ui/cocoa/notifications/notification_private_mac.h"
#import "chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.h"
@class NSUserNotificationCenter;
@@ -60,4 +61,12 @@
[[connection_ remoteObjectProxy] notificationClick:response];
}
+// NSUserNotificationCenter private.
+- (void)userNotificationCenter:(NSUserNotificationCenter*)center
+ didDismissAlert:(NSUserNotification*)notification {
+ NSDictionary* response =
+ [NotificationResponseBuilder buildDictionary:notification];
+ [[connection_ remoteObjectProxy] notificationClick:response];
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698