| OLD | NEW |
| 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 <string> |
| 11 |
| 12 #include "chrome/browser/notifications/alert_dispatcher_mac.h" |
| 11 | 13 |
| 12 @interface StubAlertDispatcher : NSObject<AlertDispatcher> | 14 @interface StubAlertDispatcher : NSObject<AlertDispatcher> |
| 13 | 15 |
| 14 - (void)dispatchNotification:(NSDictionary*)data; | 16 - (void)dispatchNotification:(NSDictionary*)data; |
| 15 | 17 |
| 16 - (void)closeNotificationWithId:(NSString*)notificationId | 18 - (void)closeNotificationWithId:(NSString*)notificationId |
| 17 withProfileId:(NSString*)profileId; | 19 withProfileId:(NSString*)profileId; |
| 18 | 20 |
| 19 - (void)closeAllNotifications; | 21 - (void)closeAllNotifications; |
| 20 | 22 |
| 23 - (void) |
| 24 getDisplayedAlertsForProfileId:(NSString*)profileId |
| 25 incognito:(BOOL)incognito |
| 26 notificationCenter:(NSUserNotificationCenter*)notificationCenter |
| 27 callback:(GetDisplayedNotificationsCallback)callback; |
| 28 |
| 21 // Stub specific methods. | 29 // Stub specific methods. |
| 22 - (NSArray*)alerts; | 30 - (NSArray*)alerts; |
| 23 | 31 |
| 24 @end | 32 @end |
| 25 | 33 |
| 26 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ | 34 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ |
| OLD | NEW |