mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* chore: bump chromium in DEPS to 116.0.5805.2 * chore: bump chromium in DEPS to 116.0.5807.0 * chore: update patches * chore: bump chromium in DEPS to 116.0.5809.2 * chore: bump chromium in DEPS to 116.0.5811.0 * chore: bump chromium in DEPS to 116.0.5813.0 * chore: bump chromium in DEPS to 116.0.5815.0 * chore: bump chromium in DEPS to 116.0.5817.0 * chore: bump chromium in DEPS to 116.0.5819.0 * chore: bump chromium in DEPS to 116.0.5821.0 * chore: bump chromium in DEPS to 116.0.5823.0 * chore: bump chromium in DEPS to 116.0.5825.0 * chore: bump chromium in DEPS to 116.0.5827.0 * chore: bump chromium to 116.0.5817.0 cherry picked fromfd5e6fbc14* refactor: add ARC scaffolding for macOS (#38621) (cherry picked from commit9a9d8ae5ea) --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
120 lines
3.3 KiB
C++
120 lines
3.3 KiB
C++
// 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 "shell/browser/ui/tray_icon.h"
|
|
|
|
namespace electron {
|
|
|
|
TrayIcon::BalloonOptions::BalloonOptions() = default;
|
|
|
|
TrayIcon::TrayIcon() = default;
|
|
|
|
TrayIcon::~TrayIcon() = default;
|
|
|
|
void TrayIcon::SetPressedImage(ImageType image) {}
|
|
|
|
void TrayIcon::DisplayBalloon(const BalloonOptions& options) {}
|
|
|
|
void TrayIcon::RemoveBalloon() {}
|
|
|
|
void TrayIcon::Focus() {}
|
|
|
|
void TrayIcon::PopUpContextMenu(const gfx::Point& pos,
|
|
raw_ptr<ElectronMenuModel> menu_model) {}
|
|
|
|
void TrayIcon::CloseContextMenu() {}
|
|
|
|
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::NotifyMouseUp(const gfx::Point& location, int modifiers) {
|
|
for (TrayIconObserver& observer : observers_)
|
|
observer.OnMouseUp(location, modifiers);
|
|
}
|
|
|
|
void TrayIcon::NotifyMouseDown(const gfx::Point& location, int modifiers) {
|
|
for (TrayIconObserver& observer : observers_)
|
|
observer.OnMouseDown(location, modifiers);
|
|
}
|
|
|
|
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 electron
|