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_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ |
6 #define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 - (void)setSubTitle:(NSString*)subTitle; | 47 - (void)setSubTitle:(NSString*)subTitle; |
48 - (void)setContextMessage:(NSString*)contextMessage; | 48 - (void)setContextMessage:(NSString*)contextMessage; |
49 - (void)setIcon:(NSImage*)icon; | 49 - (void)setIcon:(NSImage*)icon; |
50 - (void)setButtons:(NSString*)primaryButton | 50 - (void)setButtons:(NSString*)primaryButton |
51 secondaryButton:(NSString*)secondaryButton; | 51 secondaryButton:(NSString*)secondaryButton; |
52 - (void)setTag:(NSString*)tag; | 52 - (void)setTag:(NSString*)tag; |
53 - (void)setOrigin:(NSString*)origin; | 53 - (void)setOrigin:(NSString*)origin; |
54 - (void)setNotificationId:(NSString*)notificationId; | 54 - (void)setNotificationId:(NSString*)notificationId; |
55 - (void)setProfileId:(NSString*)profileId; | 55 - (void)setProfileId:(NSString*)profileId; |
56 - (void)setIncognito:(BOOL)incognito; | 56 - (void)setIncognito:(BOOL)incognito; |
| 57 - (void)setNotificationType:(NSNumber*)notificationType; |
57 | 58 |
58 // Returns a notification ready to be displayed out of the provided | 59 // Returns a notification ready to be displayed out of the provided |
59 // |notificationData|. | 60 // |notificationData|. |
60 - (NSUserNotification*)buildUserNotification; | 61 - (NSUserNotification*)buildUserNotification; |
61 | 62 |
62 // Returns a representation of a notification that can be serialized. | 63 // Returns a representation of a notification that can be serialized. |
63 // Another instance of NotificationBuilder can read this directly and generate | 64 // Another instance of NotificationBuilder can read this directly and generate |
64 // a notification out of it via the |buildbuildUserNotification| method. | 65 // a notification out of it via the |buildbuildUserNotification| method. |
65 - (NSDictionary*)buildDictionary; | 66 - (NSDictionary*)buildDictionary; |
66 | 67 |
67 @end | 68 @end |
68 | 69 |
69 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ | 70 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ |
OLD | NEW |