feat: allow Linux/Windows users to set notification timeout (#20153)
* feat: allow Linux users to set notification timeout * implement on windows
This commit is contained in:
parent
5e11be6898
commit
f80a17c5be
7 changed files with 92 additions and 3 deletions
|
@ -54,6 +54,7 @@ class Notification : public mate::TrackableObject<Notification>,
|
|||
base::string16 GetBody() const;
|
||||
bool GetSilent() const;
|
||||
bool GetHasReply() const;
|
||||
base::string16 GetTimeoutType() const;
|
||||
base::string16 GetReplyPlaceholder() const;
|
||||
base::string16 GetUrgency() const;
|
||||
base::string16 GetSound() const;
|
||||
|
@ -67,6 +68,7 @@ class Notification : public mate::TrackableObject<Notification>,
|
|||
void SetSilent(bool new_silent);
|
||||
void SetHasReply(bool new_has_reply);
|
||||
void SetUrgency(const base::string16& new_urgency);
|
||||
void SetTimeoutType(const base::string16& new_timeout_type);
|
||||
void SetReplyPlaceholder(const base::string16& new_reply_placeholder);
|
||||
void SetSound(const base::string16& sound);
|
||||
void SetActions(const std::vector<electron::NotificationAction>& actions);
|
||||
|
@ -81,6 +83,7 @@ class Notification : public mate::TrackableObject<Notification>,
|
|||
bool has_icon_ = false;
|
||||
bool silent_ = false;
|
||||
bool has_reply_ = false;
|
||||
base::string16 timeout_type_;
|
||||
base::string16 reply_placeholder_;
|
||||
base::string16 sound_;
|
||||
base::string16 urgency_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue