Implement 'drop-files' tray event on OS X.

This commit is contained in:
Haojian Wu 2015-07-19 12:12:28 +08:00
parent 2cd6ad1a97
commit d342c9a6df
7 changed files with 49 additions and 4 deletions

View file

@ -64,6 +64,10 @@ void Tray::OnRightClicked(const gfx::Rect& bounds) {
Emit("right-clicked", bounds);
}
void Tray::OnDropFiles(const std::vector<std::string>& files) {
Emit("drop-files", files);
}
bool Tray::IsDestroyed() const {
return !tray_icon_;
}