/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "ui/rp_widget.h" #include "base/object_ptr.h" namespace Ui { class MediaSlider; } // namespace Ui namespace Window { class SessionController; } // namespace Window namespace Media::Player { class Dropdown; class VolumeController final : public Ui::RpWidget { public: VolumeController( QWidget *parent, not_null controller); void setIsVertical(bool vertical); protected: void resizeEvent(QResizeEvent *e) override; private: void setVolume(float64 volume); void applyVolumeChange(float64 volume); object_ptr _slider; }; void PrepareVolumeDropdown( not_null dropdown, not_null controller); } // namespace Media::Player