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

Hide floating player if video message is visible.

This commit is contained in:
John Preston
2017-05-23 17:04:59 +03:00
parent b7550f63c9
commit c58a48276f
9 changed files with 77 additions and 32 deletions

View File

@@ -65,6 +65,9 @@ public:
return _gifPauseLevelChanged;
}
bool isGifPausedAtLeastFor(GifPauseReason reason) const;
base::Observable<void> &floatPlayerAreaUpdated() {
return _floatPlayerAreaUpdated;
}
struct ColumnLayout {
int bodyWidth;
@@ -104,6 +107,7 @@ private:
GifPauseReasons _gifPauseReasons = { 0 };
base::Observable<void> _gifPauseLevelChanged;
base::Observable<void> _floatPlayerAreaUpdated;
base::Variable<float64> _dialogsWidthRatio = { kDefaultDialogsWidthRatio };
base::Variable<bool> _dialogsListFocused = { false };