Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_H_ | |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_H_ | |
| 7 | |
| 8 // Interface to communicate with the Alert XPC service. | |
| 9 @protocol AlertDispatcher<NSObject> | |
|
Robert Sesek
2016/11/07 17:51:18
Need to #import Foundation.h for this protocol.
Miguel Garcia
2016/11/10 12:46:51
Done.
| |
| 10 | |
| 11 // Deliver a notification to the XPC service to be displayed as an alert. | |
| 12 - (void)dispatchNotification:(NSDictionary*)data; | |
| 13 | |
| 14 // Close a notification for a given |notificationId| and |profileId|. | |
| 15 - (void)closeNotificationWithId:(NSString*)notificationId | |
| 16 withProfileId:(NSString*)profileId; | |
| 17 | |
| 18 // Close all notifications. | |
| 19 - (void)closeAllNotifications; | |
| 20 | |
| 21 @end | |
| 22 | |
| 23 #endif // CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_H_ | |
| OLD | NEW |