123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- // 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() {}
- void TrayIcon::SetPressedImage(ImageType image) {}
- void TrayIcon::SetTitle(const std::string& title) {}
- void TrayIcon::SetHighlightMode(TrayIcon::HighlightMode mode) {}
- void TrayIcon::DisplayBalloon(ImageType icon,
- const base::string16& title,
- const base::string16& contents) {}
- void TrayIcon::PopUpContextMenu(const gfx::Point& pos,
- AtomMenuModel* menu_model) {}
- gfx::Rect TrayIcon::GetBounds() {
- return gfx::Rect();
- }
- void TrayIcon::NotifyClicked(const gfx::Rect& bounds,
- const gfx::Point& location,
- int modifiers) {
- for (TrayIconObserver& observer : observers_)
- observer.OnClicked(bounds, location, modifiers);
- }
- void TrayIcon::NotifyDoubleClicked(const gfx::Rect& bounds, int modifiers) {
- for (TrayIconObserver& observer : observers_)
- observer.OnDoubleClicked(bounds, modifiers);
- }
- void TrayIcon::NotifyBalloonShow() {
- for (TrayIconObserver& observer : observers_)
- observer.OnBalloonShow();
- }
- void TrayIcon::NotifyBalloonClicked() {
- for (TrayIconObserver& observer : observers_)
- observer.OnBalloonClicked();
- }
- void TrayIcon::NotifyBalloonClosed() {
- for (TrayIconObserver& observer : observers_)
- observer.OnBalloonClosed();
- }
- void TrayIcon::NotifyRightClicked(const gfx::Rect& bounds, int modifiers) {
- for (TrayIconObserver& observer : observers_)
- observer.OnRightClicked(bounds, modifiers);
- }
- void TrayIcon::NotifyDrop() {
- for (TrayIconObserver& observer : observers_)
- observer.OnDrop();
- }
- void TrayIcon::NotifyDropFiles(const std::vector<std::string>& files) {
- for (TrayIconObserver& observer : observers_)
- observer.OnDropFiles(files);
- }
- void TrayIcon::NotifyDropText(const std::string& text) {
- for (TrayIconObserver& observer : observers_)
- observer.OnDropText(text);
- }
- void TrayIcon::NotifyMouseEntered(const gfx::Point& location, int modifiers) {
- for (TrayIconObserver& observer : observers_)
- observer.OnMouseEntered(location, modifiers);
- }
- void TrayIcon::NotifyMouseExited(const gfx::Point& location, int modifiers) {
- for (TrayIconObserver& observer : observers_)
- observer.OnMouseExited(location, modifiers);
- }
- void TrayIcon::NotifyMouseMoved(const gfx::Point& location, int modifiers) {
- for (TrayIconObserver& observer : observers_)
- observer.OnMouseMoved(location, modifiers);
- }
- void TrayIcon::NotifyDragEntered() {
- for (TrayIconObserver& observer : observers_)
- observer.OnDragEntered();
- }
- void TrayIcon::NotifyDragExited() {
- for (TrayIconObserver& observer : observers_)
- observer.OnDragExited();
- }
- void TrayIcon::NotifyDragEnded() {
- for (TrayIconObserver& observer : observers_)
- observer.OnDragEnded();
- }
- } // namespace atom
|