add mouse-enter and mouse-exit events for tray

This commit is contained in:
Shubham 2017-06-14 18:00:29 -04:00
parent a6ea316a5d
commit 8dbb8ccbab
7 changed files with 48 additions and 1 deletions

View file

@ -79,6 +79,16 @@ void TrayIcon::NotifyDropText(const std::string& text) {
observer.OnDropText(text);
}
void TrayIcon::NotifyMouseEntered() {
for (TrayIconObserver& observer : observers_)
observer.OnMouseEntered();
}
void TrayIcon::NotifyMouseExited() {
for (TrayIconObserver& observer : observers_)
observer.OnMouseExited();
}
void TrayIcon::NotifyDragEntered() {
for (TrayIconObserver& observer : observers_)
observer.OnDragEntered();