Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: chrome/browser/ui/cocoa/notifications/notification_builder_mac.h

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698