Merge pull request #6490 from wilsonpage/add-drop-text-support

Add support for dropped text in osx
This commit is contained in:
Cheng Zhao 2016-07-15 09:12:35 +09:00 committed by GitHub
commit 16e43a7f15
7 changed files with 27 additions and 1 deletions

View file

@ -68,6 +68,10 @@ void TrayIcon::NotifyDropFiles(const std::vector<std::string>& files) {
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDropFiles(files));
}
void TrayIcon::NotifyDropText(const std::string& text) {
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDropText(text));
}
void TrayIcon::NotifyDragEntered() {
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDragEntered());
}