status_icon.h 906 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright (c) 2020 Slack Technologies, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. // Copyright (c) 2020 The Chromium Authors. All rights reserved.
  5. // Use of this source code is governed by a BSD-style license that can be
  6. // found in the LICENSE file.
  7. #ifndef ELECTRON_SHELL_BROWSER_UI_GTK_STATUS_ICON_H_
  8. #define ELECTRON_SHELL_BROWSER_UI_GTK_STATUS_ICON_H_
  9. #include <memory>
  10. #include "base/strings/string_util.h"
  11. #include "ui/gfx/image/image_skia.h"
  12. #include "ui/views/linux_ui/status_icon_linux.h"
  13. namespace electron {
  14. namespace gtkui {
  15. bool IsStatusIconSupported();
  16. std::unique_ptr<views::StatusIconLinux> CreateLinuxStatusIcon(
  17. const gfx::ImageSkia& image,
  18. const std::u16string& tool_tip,
  19. const char* id_prefix);
  20. } // namespace gtkui
  21. } // namespace electron
  22. #endif // ELECTRON_SHELL_BROWSER_UI_GTK_STATUS_ICON_H_