feat: add middle click event to tray (#39926)
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
480f48b2fc
commit
689d1b76de
9 changed files with 33 additions and 3 deletions
|
@ -41,6 +41,11 @@ void TrayIcon::NotifyDoubleClicked(const gfx::Rect& bounds, int modifiers) {
|
|||
observer.OnDoubleClicked(bounds, modifiers);
|
||||
}
|
||||
|
||||
void TrayIcon::NotifyMiddleClicked(const gfx::Rect& bounds, int modifiers) {
|
||||
for (TrayIconObserver& observer : observers_)
|
||||
observer.OnMiddleClicked(bounds, modifiers);
|
||||
}
|
||||
|
||||
void TrayIcon::NotifyBalloonShow() {
|
||||
for (TrayIconObserver& observer : observers_)
|
||||
observer.OnBalloonShow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue