Tray: Add drag-end and drop events
This commit is contained in:
parent
f98147ea01
commit
d1e8e71e3f
6 changed files with 31 additions and 0 deletions
|
@ -55,6 +55,10 @@ void TrayIcon::NotifyRightClicked(const gfx::Rect& bounds, int modifiers) {
|
|||
OnRightClicked(bounds, modifiers));
|
||||
}
|
||||
|
||||
void TrayIcon::NotifyDrop() {
|
||||
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDrop());
|
||||
}
|
||||
|
||||
void TrayIcon::NotifyDropFiles(const std::vector<std::string>& files) {
|
||||
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDropFiles(files));
|
||||
}
|
||||
|
@ -67,4 +71,8 @@ void TrayIcon::NotifyDragExited() {
|
|||
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDragExited());
|
||||
}
|
||||
|
||||
void TrayIcon::NotifyDragEnded() {
|
||||
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDragEnded());
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue