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

Side by Side Diff: chrome/browser/notifications/stub_alert_dispatcher_mac.h

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: review + linux support 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import "chrome/browser/notifications/alert_dispatcher_mac.h" 10 #include <set>
Robert Sesek 2017/04/05 17:16:54 Not needed in the .h
Miguel Garcia 2017/04/05 19:15:30 Done.
11 #include <string>
12
13 #include "chrome/browser/notifications/alert_dispatcher_mac.h"
11 14
12 @interface StubAlertDispatcher : NSObject<AlertDispatcher> 15 @interface StubAlertDispatcher : NSObject<AlertDispatcher>
13 16
14 - (void)dispatchNotification:(NSDictionary*)data; 17 - (void)dispatchNotification:(NSDictionary*)data;
15 18
16 - (void)closeNotificationWithId:(NSString*)notificationId 19 - (void)closeNotificationWithId:(NSString*)notificationId
17 withProfileId:(NSString*)profileId; 20 withProfileId:(NSString*)profileId;
18 21
19 - (void)closeAllNotifications; 22 - (void)closeAllNotifications;
20 23
24 - (void)
25 getDisplayedAlertsForProfileId:(NSString*)profileId
26 incognito:(BOOL)incognito
27 notificationCenter:(NSUserNotificationCenter*)notificationCenter
28 callback:(GetDisplayedNotificationsCallback)callback;
29
21 // Stub specific methods. 30 // Stub specific methods.
22 - (NSArray*)alerts; 31 - (NSArray*)alerts;
23 32
24 @end 33 @end
25 34
26 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ 35 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698