🍎 Add subtitle to Notification properties
This commit is contained in:
parent
440b238157
commit
a196bf97bc
5 changed files with 19 additions and 1 deletions
|
@ -27,6 +27,7 @@ CocoaNotification::~CocoaNotification() {
|
|||
void CocoaNotification::Show(const NotificationOptions& options) {
|
||||
notification_.reset([[NSUserNotification alloc] init]);
|
||||
[notification_ setTitle:base::SysUTF16ToNSString(options.title)];
|
||||
[notification_ setSubtitle:base::SysUTF16ToNSString(options.subtitle)];
|
||||
[notification_ setInformativeText:base::SysUTF16ToNSString(options.msg)];
|
||||
|
||||
if ([notification_ respondsToSelector:@selector(setContentImage:)] &&
|
||||
|
|
|
@ -25,6 +25,7 @@ struct NotificationAction {
|
|||
|
||||
struct NotificationOptions {
|
||||
base::string16 title;
|
||||
base::string16 subtitle;
|
||||
base::string16 msg;
|
||||
std::string tag;
|
||||
GURL icon_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue