2014-10-31 11:17:05 -07:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-05-30 10:31:27 +08:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "atom/browser/ui/tray_icon.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
2014-05-30 14:37:53 +08:00
|
|
|
TrayIcon::TrayIcon() {
|
2014-05-30 10:31:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
TrayIcon::~TrayIcon() {
|
|
|
|
}
|
|
|
|
|
2015-01-02 18:43:56 -08:00
|
|
|
void TrayIcon::SetPressedImage(const gfx::Image& image) {
|
2014-12-09 16:51:27 -08:00
|
|
|
}
|
|
|
|
|
2014-09-09 19:33:58 +08:00
|
|
|
void TrayIcon::SetTitle(const std::string& title) {
|
|
|
|
}
|
|
|
|
|
2014-09-09 19:39:39 +08:00
|
|
|
void TrayIcon::SetHighlightMode(bool highlight) {
|
|
|
|
}
|
|
|
|
|
2015-01-02 18:43:56 -08:00
|
|
|
void TrayIcon::DisplayBalloon(const gfx::Image& icon,
|
2014-11-28 18:30:43 +08:00
|
|
|
const base::string16& title,
|
|
|
|
const base::string16& contents) {
|
|
|
|
}
|
|
|
|
|
2014-06-02 11:08:29 +08:00
|
|
|
void TrayIcon::NotifyClicked() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnClicked());
|
|
|
|
}
|
|
|
|
|
2014-09-09 19:45:21 +08:00
|
|
|
void TrayIcon::NotifyDoubleClicked() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDoubleClicked());
|
|
|
|
}
|
|
|
|
|
2014-11-28 19:42:57 +08:00
|
|
|
void TrayIcon::NotifyBalloonShow() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnBalloonShow());
|
|
|
|
}
|
|
|
|
|
2014-11-28 18:50:31 +08:00
|
|
|
void TrayIcon::NotifyBalloonClicked() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnBalloonClicked());
|
|
|
|
}
|
|
|
|
|
2014-11-28 19:42:57 +08:00
|
|
|
void TrayIcon::NotifyBalloonClosed() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnBalloonClosed());
|
|
|
|
}
|
|
|
|
|
2014-05-30 10:31:27 +08:00
|
|
|
} // namespace atom
|