mac: Simple implementation of tray icon.
This commit is contained in:
parent
80fb79daac
commit
6f5184f001
8 changed files with 46 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue