mac_touchbar_manager.h 713 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #import <AppKit/NSTouchBar.h>
  9. namespace Main {
  10. class Domain;
  11. } // namespace Main
  12. namespace Window {
  13. class Controller;
  14. } // namespace Window
  15. namespace Ui {
  16. struct MarkdownEnabledState;
  17. } // namespace Ui
  18. API_AVAILABLE(macos(10.12.2))
  19. @interface RootTouchBar : NSTouchBar<NSTouchBarDelegate>
  20. - (id)init:(rpl::producer<Ui::MarkdownEnabledState>)markdownState
  21. controller:(not_null<Window::Controller*>)controller
  22. domain:(not_null<Main::Domain*>)domain;
  23. @end