feat: add tray.removeBalloon() (#19547)

This commit is contained in:
Milan Burda 2019-08-05 17:52:47 +02:00 committed by Shelley Vohr
parent 8f043bbdaa
commit ee674acca4
7 changed files with 26 additions and 0 deletions

View file

@ -175,6 +175,10 @@ void Tray::DisplayBalloon(mate::Arguments* args,
#endif
}
void Tray::RemoveBalloon() {
tray_icon_->RemoveBalloon();
}
void Tray::PopUpContextMenu(mate::Arguments* args) {
mate::Handle<Menu> menu;
args->GetNext(&menu);
@ -208,6 +212,7 @@ void Tray::BuildPrototype(v8::Isolate* isolate,
.SetMethod("getIgnoreDoubleClickEvents",
&Tray::GetIgnoreDoubleClickEvents)
.SetMethod("displayBalloon", &Tray::DisplayBalloon)
.SetMethod("removeBalloon", &Tray::RemoveBalloon)
.SetMethod("popUpContextMenu", &Tray::PopUpContextMenu)
.SetMethod("setContextMenu", &Tray::SetContextMenu)
.SetMethod("getBounds", &Tray::GetBounds);