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

Unified Diff: chrome/browser/notifications/alert_dispatcher_mac.h

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: review Created 3 years, 8 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 | « no previous file | chrome/browser/notifications/displayed_notifications_dispatch_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/alert_dispatcher_mac.h
diff --git a/chrome/browser/notifications/alert_dispatcher_mac.h b/chrome/browser/notifications/alert_dispatcher_mac.h
index ee2744c29e183d68a1c4ee6e462dbfa76bed14fd..69821e1b8813e4f25762eed8dc74151aed31fca1 100644
--- a/chrome/browser/notifications/alert_dispatcher_mac.h
+++ b/chrome/browser/notifications/alert_dispatcher_mac.h
@@ -7,6 +7,9 @@
#import <Foundation/Foundation.h>
+#include "base/callback_forward.h"
+#include "chrome/browser/notifications/displayed_notifications_dispatch_callback.h"
+
// Interface to communicate with the Alert XPC service.
@protocol AlertDispatcher<NSObject>
@@ -20,6 +23,12 @@
// Close all notifications.
- (void)closeAllNotifications;
+// Get currently displayed notifications.
+- (void)
+getDisplayedAlertsForProfileId:(NSString*)profileId
+ incognito:(BOOL)incognito
+ notificationCenter:(NSUserNotificationCenter*)notificationCenter
+ callback:(GetDisplayedNotificationsCallback)callback;
@end
#endif // CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_
« no previous file with comments | « no previous file | chrome/browser/notifications/displayed_notifications_dispatch_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698