mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Moved views increment scheduler from MainWidget to separate file.
This commit is contained in:
@@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "base/timer.h"
|
||||
#include "base/weak_ptr.h"
|
||||
#include "chat_helpers/bot_command.h"
|
||||
#include "ui/rp_widget.h"
|
||||
@@ -201,8 +200,6 @@ public:
|
||||
void ctrlEnterSubmitUpdated();
|
||||
void setInnerFocus();
|
||||
|
||||
void scheduleViewIncrement(HistoryItem *item);
|
||||
|
||||
bool contentOverlapped(const QRect &globalRect);
|
||||
|
||||
void searchInChat(Dialogs::Key chat);
|
||||
@@ -245,8 +242,6 @@ protected:
|
||||
bool eventFilter(QObject *o, QEvent *e) override;
|
||||
|
||||
private:
|
||||
void viewsIncrement();
|
||||
|
||||
void animationCallback();
|
||||
void handleAdaptiveLayoutUpdate();
|
||||
void updateWindowAdaptiveLayout();
|
||||
@@ -313,12 +308,6 @@ private:
|
||||
void floatPlayerDoubleClickEvent(
|
||||
not_null<const HistoryItem*> item) override;
|
||||
|
||||
void viewsIncrementDone(
|
||||
QVector<MTPint> ids,
|
||||
const MTPmessages_MessageViews &result,
|
||||
mtpRequestId requestId);
|
||||
void viewsIncrementFail(const MTP::Error &error, mtpRequestId requestId);
|
||||
|
||||
void refreshResizeAreas();
|
||||
template <typename MoveCallback, typename FinishCallback>
|
||||
void createResizeArea(
|
||||
@@ -389,12 +378,6 @@ private:
|
||||
|
||||
PhotoData *_deletingPhoto = nullptr;
|
||||
|
||||
base::flat_map<not_null<PeerData*>, base::flat_set<MsgId>> _viewsIncremented;
|
||||
base::flat_map<not_null<PeerData*>, base::flat_set<MsgId>> _viewsToIncrement;
|
||||
base::flat_map<not_null<PeerData*>, mtpRequestId> _viewsIncrementRequests;
|
||||
base::flat_map<mtpRequestId, not_null<PeerData*>> _viewsIncrementByRequest;
|
||||
base::Timer _viewsIncrementTimer;
|
||||
|
||||
struct SettingBackground;
|
||||
std::unique_ptr<SettingBackground> _background;
|
||||
|
||||
|
Reference in New Issue
Block a user