mac_touchbar_main.h 757 B

12345678910111213141516171819202122232425262728
  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 Window {
  10. class Controller;
  11. } // namespace Window
  12. namespace TouchBar::Main {
  13. const auto kPinnedPanelItemIdentifier = @"pinnedPanel";
  14. const auto kPopoverInputItemIdentifier = @"popoverInput";
  15. const auto kPopoverPickerItemIdentifier = @"pickerButtons";
  16. } // namespace TouchBar::Main
  17. API_AVAILABLE(macos(10.12.2))
  18. @interface TouchBarMain : NSTouchBar
  19. - (id)init:(not_null<Window::Controller*>)controller
  20. touchBarSwitches:(rpl::producer<>)touchBarSwitches;
  21. @end