mac: Add "double-clicked" event for Tray.
This commit is contained in:
parent
ec1db0c7bb
commit
67cbecaba0
6 changed files with 17 additions and 1 deletions
|
@ -36,6 +36,10 @@ void Tray::OnClicked() {
|
|||
Emit("clicked");
|
||||
}
|
||||
|
||||
void Tray::OnDoubleClicked() {
|
||||
Emit("double-clicked");
|
||||
}
|
||||
|
||||
void Tray::SetImage(const gfx::ImageSkia& image) {
|
||||
tray_icon_->SetImage(image);
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ class Tray : public mate::EventEmitter,
|
|||
|
||||
// TrayIcon implementations:
|
||||
virtual void OnClicked() OVERRIDE;
|
||||
virtual void OnDoubleClicked() OVERRIDE;
|
||||
|
||||
void SetImage(const gfx::ImageSkia& image);
|
||||
void SetPressedImage(const gfx::ImageSkia& image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue