// 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, int modifiers) { for (TrayIconObserver& observer : observers_) observer.OnClicked(bounds, 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& files) { for (TrayIconObserver& observer : observers_) observer.OnDropFiles(files); } void TrayIcon::NotifyDropText(const std::string& text) { for (TrayIconObserver& observer : observers_) observer.OnDropText(text); } 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