2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use crl::time/now instead of TimeMs/getms.

This commit is contained in:
John Preston
2019-02-19 10:57:53 +04:00
parent d208236994
commit fe618bd652
310 changed files with 1133 additions and 1141 deletions

View File

@@ -29,7 +29,7 @@ class Checkbox;
class PaintContext : public PaintContextBase {
public:
PaintContext(TimeMs ms, bool selecting) : PaintContextBase(ms, selecting), isAfterDate(false) {
PaintContext(crl::time ms, bool selecting) : PaintContextBase(ms, selecting), isAfterDate(false) {
}
bool isAfterDate;
@@ -129,12 +129,12 @@ protected:
ClickHandlerPtr &&cancell);
void setDocumentLinks(not_null<DocumentData*> document);
void step_radial(TimeMs ms, bool timer);
void step_radial(crl::time ms, bool timer);
void ensureRadial();
void checkRadialFinished();
bool isRadialAnimation(TimeMs ms) const {
bool isRadialAnimation(crl::time ms) const {
if (!_radial || !_radial->animating()) return false;
_radial->step(ms);
@@ -156,7 +156,7 @@ protected:
class StatusText {
public:
// duration = -1 - no duration, duration = -2 - "GIF" duration
void update(int newSize, int fullSize, int duration, TimeMs realDuration);
void update(int newSize, int fullSize, int duration, crl::time realDuration);
void setSize(int newSize);
int size() const {