mac: Implement the "click" event of TrayIcon.

This commit is contained in:
Cheng Zhao 2014-06-02 11:28:23 +08:00
parent cbd9366898
commit da31588e0d
3 changed files with 32 additions and 0 deletions

View file

@ -21,6 +21,7 @@ namespace api {
Tray::Tray(const gfx::ImageSkia& image)
: tray_icon_(TrayIcon::Create()) {
tray_icon_->SetImage(image);
tray_icon_->AddObserver(this);
}
Tray::~Tray() {