mac: Implement the "click" event of TrayIcon.
This commit is contained in:
parent
cbd9366898
commit
da31588e0d
3 changed files with 32 additions and 0 deletions
|
@ -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_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue