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

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

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_private_mac.h
diff --git a/chrome/browser/ui/cocoa/notifications/notification_private_mac.h b/chrome/browser/ui/cocoa/notifications/notification_private_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb6f951e802eb050aecf8010c93b8bc45b44c525
--- /dev/null
+++ b/chrome/browser/ui/cocoa/notifications/notification_private_mac.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_PRIVATE_MAC_H_
+#define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_PRIVATE_MAC_H_
+
+@class NSUserNotification;
+@class NSUserNotificationCenter;
+
+// NSUserNotificationCenter private API.
+
+@protocol
Robert Sesek 2016/10/05 20:33:32 I don't think you need this file at all (nothing i
Miguel Garcia 2016/10/05 21:58:37 I see, done then
+ _NSUserNotificationCenterDelegatePrivate<NSUserNotificationCenterDelegate>
+
+// Emmitted when a user clicks the "Close" Button in the notification.
+// It not is emmitted if the notification is closed from the notification
+// center or if the app is not running by the time the Close button is
+// pressed so it's essentially just a best effort way to detect
+// notifications closed by the user
+@optional
+- (void)userNotificationCenter:(NSUserNotificationCenter*)center
+ didDismissAlert:(NSUserNotification*)notification;
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_PRIVATE_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698