| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 - (void)setContextMessage:(NSString*)contextMessage; | 52 - (void)setContextMessage:(NSString*)contextMessage; |
| 53 - (void)setIcon:(NSImage*)icon; | 53 - (void)setIcon:(NSImage*)icon; |
| 54 - (void)setButtons:(NSString*)primaryButton | 54 - (void)setButtons:(NSString*)primaryButton |
| 55 secondaryButton:(NSString*)secondaryButton; | 55 secondaryButton:(NSString*)secondaryButton; |
| 56 - (void)setTag:(NSString*)tag; | 56 - (void)setTag:(NSString*)tag; |
| 57 - (void)setOrigin:(NSString*)origin; | 57 - (void)setOrigin:(NSString*)origin; |
| 58 - (void)setNotificationId:(NSString*)notificationId; | 58 - (void)setNotificationId:(NSString*)notificationId; |
| 59 - (void)setProfileId:(NSString*)profileId; | 59 - (void)setProfileId:(NSString*)profileId; |
| 60 - (void)setIncognito:(BOOL)incognito; | 60 - (void)setIncognito:(BOOL)incognito; |
| 61 - (void)setNotificationType:(NSNumber*)notificationType; | 61 - (void)setNotificationType:(NSNumber*)notificationType; |
| 62 - (void)setShowSettingsButton:(BOOL)showSettingsButton; |
| 62 | 63 |
| 63 // Returns a notification ready to be displayed out of the provided | 64 // Returns a notification ready to be displayed out of the provided |
| 64 // |notificationData|. | 65 // |notificationData|. |
| 65 - (NSUserNotification*)buildUserNotification; | 66 - (NSUserNotification*)buildUserNotification; |
| 66 | 67 |
| 67 // Returns a representation of a notification that can be serialized. | 68 // Returns a representation of a notification that can be serialized. |
| 68 // Another instance of NotificationBuilder can read this directly and generate | 69 // Another instance of NotificationBuilder can read this directly and generate |
| 69 // a notification out of it via the |buildbuildUserNotification| method. | 70 // a notification out of it via the |buildbuildUserNotification| method. |
| 70 - (NSDictionary*)buildDictionary; | 71 - (NSDictionary*)buildDictionary; |
| 71 | 72 |
| 72 @end | 73 @end |
| 73 | 74 |
| 74 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ | 75 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_BUILDER_MAC_H_ |
| OLD | NEW |