12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- // 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<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::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
|