2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Moved code for send context menu to namespace.

This commit is contained in:
23rd
2020-08-10 15:22:54 +03:00
committed by John Preston
parent af9440db38
commit 14cda49db2
22 changed files with 119 additions and 93 deletions

View File

@@ -34,7 +34,9 @@ namespace Window {
class SessionController;
} // namespace Window
enum class SendMenuType;
namespace SendMenu {
enum class Type;
} // namespace SendMenu
namespace ChatHelpers {
@@ -111,7 +113,7 @@ public:
_beforeHidingCallback = std::move(callback);
}
void setSendMenuType(Fn<SendMenuType()> callback) {
void setSendMenuType(Fn<SendMenu::Type()> callback) {
_sendMenuType = std::move(callback);
}
@@ -230,7 +232,7 @@ private:
Fn<void(SelectorTab)> _afterShownCallback;
Fn<void(SelectorTab)> _beforeHidingCallback;
Fn<SendMenuType()> _sendMenuType;
Fn<SendMenu::Type()> _sendMenuType;
rpl::event_stream<> _showRequests;
rpl::event_stream<> _slideFinished;
@@ -266,7 +268,7 @@ public:
}
virtual void fillContextMenu(
not_null<Ui::PopupMenu*> menu,
SendMenuType type) {
SendMenu::Type type) {
}
rpl::producer<int> scrollToRequests() const;