2020-06-03 00:00:20 +00:00
|
|
|
// Copyright (c) 2020 Slack Technologies, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Copyright (c) 2020 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_UI_GTK_STATUS_ICON_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_UI_GTK_STATUS_ICON_H_
|
2020-06-03 00:00:20 +00:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "base/strings/string_util.h"
|
|
|
|
#include "ui/gfx/image/image_skia.h"
|
2022-07-20 11:03:34 +00:00
|
|
|
#include "ui/linux/status_icon_linux.h"
|
2020-06-03 00:00:20 +00:00
|
|
|
|
2022-06-29 19:55:47 +00:00
|
|
|
namespace electron::gtkui {
|
2020-06-03 00:00:20 +00:00
|
|
|
|
|
|
|
bool IsStatusIconSupported();
|
2022-07-20 11:03:34 +00:00
|
|
|
std::unique_ptr<ui::StatusIconLinux> CreateLinuxStatusIcon(
|
2020-06-03 00:00:20 +00:00
|
|
|
const gfx::ImageSkia& image,
|
2021-03-16 16:18:45 +00:00
|
|
|
const std::u16string& tool_tip,
|
2020-06-03 00:00:20 +00:00
|
|
|
const char* id_prefix);
|
|
|
|
|
2022-06-29 19:55:47 +00:00
|
|
|
} // namespace electron::gtkui
|
2020-06-03 00:00:20 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_UI_GTK_STATUS_ICON_H_
|