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_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_ | 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 #import "chrome/browser/notifications/alert_dispatcher_mac.h" |
11 | 11 |
12 @interface StubAlertDispatcher : NSObject<AlertDispatcher> | 12 @interface StubAlertDispatcher : NSObject<AlertDispatcher> |
13 | 13 |
14 - (void)dispatchNotification:(NSDictionary*)data; | 14 - (void)dispatchNotification:(NSDictionary*)data; |
15 | 15 |
16 - (void)closeNotificationWithId:(NSString*)notificationId | 16 - (void)closeNotificationWithId:(NSString*)notificationId |
17 withProfileId:(NSString*)profileId; | 17 withProfileId:(NSString*)profileId; |
18 | 18 |
19 - (void)closeAllNotifications; | 19 - (void)closeAllNotifications; |
20 | 20 |
21 // Stub specific methods. | 21 // Stub specific methods. |
22 - (NSArray*)alerts; | 22 - (NSArray*)alerts; |
23 | 23 |
24 @end | 24 @end |
25 | 25 |
26 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_ | 26 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ |
OLD | NEW |