Review CommentZ.
This commit is contained in:
parent
2b9b186fd1
commit
db081d95d5
3 changed files with 21 additions and 6 deletions
|
@ -114,7 +114,7 @@ std::vector<brightray::NotificationAction> Notification::GetActions() const {
|
|||
return actions_;
|
||||
}
|
||||
|
||||
base::string16 Notification::GetSoundName() const {
|
||||
base::string16 Notification::GetSound() const {
|
||||
return sound_;
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ void Notification::SetActions(
|
|||
actions_ = actions;
|
||||
}
|
||||
|
||||
void Notification::SetSoundName(const base::string16& new_sound) {
|
||||
void Notification::SetSound(const base::string16& new_sound) {
|
||||
sound_ = new_sound;
|
||||
}
|
||||
|
||||
|
@ -218,8 +218,8 @@ void Notification::BuildPrototype(v8::Isolate* isolate,
|
|||
&Notification::SetHasReply)
|
||||
.SetProperty("actions", &Notification::GetActions,
|
||||
&Notification::SetActions)
|
||||
.SetProperty("soundName", &Notification::GetSoundName,
|
||||
&Notification::SetSoundName);
|
||||
.SetProperty("sound", &Notification::GetSound,
|
||||
&Notification::SetSound);
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
|
|
|
@ -54,7 +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;
|
||||
base::string16 GetSound() const;
|
||||
|
||||
// Prop Setters
|
||||
void SetTitle(const base::string16& new_title);
|
||||
|
@ -64,7 +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);
|
||||
void SetSound(const base::string16& sound);
|
||||
|
||||
private:
|
||||
base::string16 title_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue