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