Plumb in the macOS soundName property for notifications.

This commit is contained in:
Charlie Hess 2017-08-17 00:06:27 -07:00
parent 4bc4a0c45b
commit 0cfae1cc2b
No known key found for this signature in database
GPG key ID: 12C6D6B5324956AB
5 changed files with 20 additions and 1 deletions

View file

@ -54,6 +54,7 @@ class Notification : public mate::TrackableObject<Notification>,
base::string16 GetReplyPlaceholder() const;
bool GetHasReply() const;
std::vector<brightray::NotificationAction> GetActions() const;
base::string16 GetSoundName() const;
// Prop Setters
void SetTitle(const base::string16& new_title);
@ -63,6 +64,7 @@ class Notification : public mate::TrackableObject<Notification>,
void SetReplyPlaceholder(const base::string16& new_reply_placeholder);
void SetHasReply(bool new_has_reply);
void SetActions(const std::vector<brightray::NotificationAction>& actions);
void SetSoundName(const base::string16& sound_name);
private:
base::string16 title_;
@ -75,6 +77,7 @@ class Notification : public mate::TrackableObject<Notification>,
base::string16 reply_placeholder_;
bool has_reply_ = false;
std::vector<brightray::NotificationAction> actions_;
base::string16 sound_name_;
brightray::NotificationPresenter* presenter_;