menu_sponsored.h 911 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 ChatHelpers {
  9. class Show;
  10. } // namespace ChatHelpers
  11. namespace Ui {
  12. class RpWidget;
  13. namespace Menu {
  14. struct MenuCallback;
  15. } // namespace Menu
  16. } // namespace Ui
  17. class HistoryItem;
  18. namespace Menu {
  19. void FillSponsored(
  20. not_null<Ui::RpWidget*> parent,
  21. const Ui::Menu::MenuCallback &addAction,
  22. std::shared_ptr<ChatHelpers::Show> show,
  23. const FullMsgId &fullId,
  24. bool mediaViewer,
  25. bool skipAbout = false);
  26. void ShowSponsored(
  27. not_null<Ui::RpWidget*> parent,
  28. std::shared_ptr<ChatHelpers::Show> show,
  29. const FullMsgId &fullId);
  30. void ShowSponsoredAbout(
  31. std::shared_ptr<ChatHelpers::Show> show,
  32. const FullMsgId &fullId);
  33. } // namespace Menu