refactor: rename the atom directory to shell
This commit is contained in:
parent
4575a4aae3
commit
d7f07e8a80
631 changed files with 0 additions and 0 deletions
105
shell/browser/ui/tray_icon.cc
Normal file
105
shell/browser/ui/tray_icon.cc
Normal file
|
@ -0,0 +1,105 @@
|
|||
// 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::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
|
Loading…
Add table
Add a link
Reference in a new issue