overlay_widget_win.h 525 B

1234567891011121314151617181920
  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. namespace Platform {
  9. inline std::unique_ptr<OverlayWidgetHelper> CreateOverlayWidgetHelper(
  10. not_null<Ui::RpWindow*> window,
  11. Fn<void(bool)> maximize) {
  12. return std::make_unique<DefaultOverlayWidgetHelper>(
  13. window,
  14. std::move(maximize));
  15. }
  16. } // namespace Platform