electron/atom/browser/ui/tray_icon.cc

98 lines
2.4 KiB
C++
Raw Normal View History

// Copyright (c) 2014 GitHub, Inc.
// 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 {
TrayIcon::TrayIcon() {
}
TrayIcon::~TrayIcon() {
}
2016-05-20 07:55:22 +00:00
void TrayIcon::SetPressedImage(ImageType image) {
2014-12-10 00:51:27 +00:00
}
void TrayIcon::SetTitle(const std::string& title) {
}
void TrayIcon::SetHighlightMode(TrayIcon::HighlightMode mode) {
}
2016-05-20 07:55:22 +00:00
void TrayIcon::DisplayBalloon(ImageType icon,
2014-11-28 10:30:43 +00:00
const base::string16& title,
const base::string16& contents) {
}
void TrayIcon::PopUpContextMenu(const gfx::Point& pos,
AtomMenuModel* menu_model) {
}
2016-06-21 06:40:30 +00:00
gfx::Rect TrayIcon::GetBounds() {
return gfx::Rect();
}
void TrayIcon::NotifyClicked(const gfx::Rect& bounds, int modifiers) {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnClicked(bounds, modifiers);
2014-06-02 03:08:29 +00:00
}
void TrayIcon::NotifyDoubleClicked(const gfx::Rect& bounds, int modifiers) {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDoubleClicked(bounds, modifiers);
}
void TrayIcon::NotifyBalloonShow() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnBalloonShow();
}
void TrayIcon::NotifyBalloonClicked() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnBalloonClicked();
}
void TrayIcon::NotifyBalloonClosed() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnBalloonClosed();
}
void TrayIcon::NotifyRightClicked(const gfx::Rect& bounds, int modifiers) {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnRightClicked(bounds, modifiers);
}
2015-11-10 16:02:50 +00:00
void TrayIcon::NotifyDrop() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDrop();
2015-11-10 16:02:50 +00:00
}
2015-10-18 05:32:13 +00:00
void TrayIcon::NotifyDropFiles(const std::vector<std::string>& files) {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDropFiles(files);
}
2016-07-14 17:21:39 +00:00
void TrayIcon::NotifyDropText(const std::string& text) {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDropText(text);
2016-07-14 17:21:39 +00:00
}
void TrayIcon::NotifyDragEntered() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDragEntered();
}
void TrayIcon::NotifyDragExited() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDragExited();
}
2015-11-10 16:02:50 +00:00
void TrayIcon::NotifyDragEnded() {
2017-01-24 03:34:39 +00:00
for (TrayIconObserver& observer : observers_)
observer.OnDragEnded();
2015-11-10 16:02:50 +00:00
}
} // namespace atom