mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Tray: Add drag-entered and drag-exited events
This commit is contained in:
@@ -78,6 +78,14 @@ void Tray::OnDropFiles(const std::vector<std::string>& files) {
|
||||
Emit("drop-files", files);
|
||||
}
|
||||
|
||||
void Tray::OnDragEntered() {
|
||||
Emit("drag-entered");
|
||||
}
|
||||
|
||||
void Tray::OnDragExited() {
|
||||
Emit("drag-exited");
|
||||
}
|
||||
|
||||
bool Tray::IsDestroyed() const {
|
||||
return !tray_icon_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user