2014-10-31 11:17:05 -07:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-05-30 10:31:27 +08:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 13:46:59 -07:00
|
|
|
#include "shell/browser/ui/win/notify_icon.h"
|
|
|
|
#include "shell/browser/ui/win/notify_icon_host.h"
|
2014-05-30 10:31:27 +08:00
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
namespace electron {
|
2014-05-30 10:31:27 +08:00
|
|
|
|
2014-05-30 23:57:54 +08:00
|
|
|
// static
|
2020-01-30 21:37:03 -08:00
|
|
|
TrayIcon* TrayIcon::Create(base::Optional<UUID> guid) {
|
2014-06-03 11:25:09 +08:00
|
|
|
static NotifyIconHost host;
|
2020-01-30 21:37:03 -08:00
|
|
|
return host.CreateNotifyIcon(guid);
|
2014-05-30 23:57:54 +08:00
|
|
|
}
|
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
} // namespace electron
|