win: Implement tray icon API.

This commit is contained in:
Cheng Zhao 2014-06-03 11:25:09 +08:00
parent 08e7c07c57
commit 1cb135f7f2
6 changed files with 527 additions and 21 deletions

View file

@ -2,31 +2,15 @@
// 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_win.h"
#include "atom/browser/ui/win/notify_icon.h"
#include "atom/browser/ui/win/notify_icon_host.h"
namespace atom {
TrayIconWin::TrayIconWin() {
}
TrayIconWin::~TrayIconWin() {
}
void TrayIconWin::SetImage(const gfx::ImageSkia& image) {
}
void TrayIconWin::SetPressedImage(const gfx::ImageSkia& image) {
}
void TrayIconWin::SetToolTip(const std::string& tool_tip) {
}
void TrayIconWin::SetContextMenu(ui::SimpleMenuModel* menu_model) {
}
// static
TrayIcon* TrayIcon::Create() {
return new TrayIconWin;
static NotifyIconHost host;
return host.CreateNotifyIcon();
}
} // namespace atom