2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-05-30 02:31:27 +00: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 06:37:53 +00:00
|
|
|
TrayIcon::TrayIcon() {
|
2014-05-30 02:31:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TrayIcon::~TrayIcon() {
|
|
|
|
}
|
|
|
|
|
2015-01-03 02:43:56 +00:00
|
|
|
void TrayIcon::SetPressedImage(const gfx::Image& image) {
|
2014-12-10 00:51:27 +00:00
|
|
|
}
|
|
|
|
|
2014-09-09 11:33:58 +00:00
|
|
|
void TrayIcon::SetTitle(const std::string& title) {
|
|
|
|
}
|
|
|
|
|
2014-09-09 11:39:39 +00:00
|
|
|
void TrayIcon::SetHighlightMode(bool highlight) {
|
|
|
|
}
|
|
|
|
|
2015-01-03 02:43:56 +00:00
|
|
|
void TrayIcon::DisplayBalloon(const gfx::Image& icon,
|
2014-11-28 10:30:43 +00:00
|
|
|
const base::string16& title,
|
|
|
|
const base::string16& contents) {
|
|
|
|
}
|
|
|
|
|
2015-08-10 05:00:15 +00:00
|
|
|
void TrayIcon::PopUpContextMenu(const gfx::Point& pos) {
|
2015-07-16 02:50:53 +00:00
|
|
|
}
|
|
|
|
|
2015-07-27 10:15:51 +00:00
|
|
|
void TrayIcon::NotifyClicked(const gfx::Rect& bounds, int modifiers) {
|
2015-07-29 04:01:27 +00:00
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnClicked(bounds, modifiers));
|
2014-06-02 03:08:29 +00:00
|
|
|
}
|
|
|
|
|
2015-07-27 10:15:51 +00:00
|
|
|
void TrayIcon::NotifyDoubleClicked(const gfx::Rect& bounds, int modifiers) {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_,
|
2015-07-29 04:01:27 +00:00
|
|
|
OnDoubleClicked(bounds, modifiers));
|
2014-09-09 11:45:21 +00:00
|
|
|
}
|
|
|
|
|
2014-11-28 11:42:57 +00:00
|
|
|
void TrayIcon::NotifyBalloonShow() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnBalloonShow());
|
|
|
|
}
|
|
|
|
|
2014-11-28 10:50:31 +00:00
|
|
|
void TrayIcon::NotifyBalloonClicked() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnBalloonClicked());
|
|
|
|
}
|
|
|
|
|
2014-11-28 11:42:57 +00:00
|
|
|
void TrayIcon::NotifyBalloonClosed() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnBalloonClosed());
|
|
|
|
}
|
|
|
|
|
2015-07-27 10:15:51 +00:00
|
|
|
void TrayIcon::NotifyRightClicked(const gfx::Rect& bounds, int modifiers) {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_,
|
2015-07-29 04:01:27 +00:00
|
|
|
OnRightClicked(bounds, modifiers));
|
2015-07-15 11:23:12 +00:00
|
|
|
}
|
|
|
|
|
2015-10-18 05:32:13 +00:00
|
|
|
void TrayIcon::NotifyDropFiles(const std::vector<std::string>& files) {
|
2015-07-19 04:12:28 +00:00
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDropFiles(files));
|
|
|
|
}
|
|
|
|
|
2015-11-06 00:45:43 +00:00
|
|
|
void TrayIcon::NotifyDragEntered() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDragEntered());
|
|
|
|
}
|
|
|
|
|
|
|
|
void TrayIcon::NotifyDragExited() {
|
|
|
|
FOR_EACH_OBSERVER(TrayIconObserver, observers_, OnDragExited());
|
|
|
|
}
|
|
|
|
|
2014-05-30 02:31:27 +00:00
|
|
|
} // namespace atom
|