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

@ -13,6 +13,7 @@
#include "base/mac/scoped_nsobject.h"
@class AtomMenuController;
@class StatusItemController;
namespace atom {
@ -29,6 +30,8 @@ class TrayIconCocoa : public TrayIcon {
private:
base::scoped_nsobject<NSStatusItem> item_;
base::scoped_nsobject<StatusItemController> controller_;
// Status menu shown when right-clicking the system icon.
base::scoped_nsobject<AtomMenuController> menu_;