Chromium Code Reviews| 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_ |