mac: Simple implementation of tray icon.

This commit is contained in:
Cheng Zhao 2014-05-30 14:37:53 +08:00
parent 80fb79daac
commit 6f5184f001
8 changed files with 46 additions and 8 deletions

View file

@ -28,15 +28,13 @@ class TrayIcon {
virtual void SetToolTip(const std::string& tool_tip) = 0;
// Set the context menu for this icon.
void SetContextMenu(ui::SimpleMenuModel* menu_model);
virtual void SetContextMenu(ui::SimpleMenuModel* menu_model) = 0;
protected:
TrayIcon();
virtual ~TrayIcon();
private:
ui::SimpleMenuModel* model_; // Weak reference.
DISALLOW_COPY_AND_ASSIGN(TrayIcon);
};