/* 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 "lottie/lottie_common.h" #include "base/weak_ptr.h" #include namespace Lottie { class SharedState; class Player : public base::has_weak_ptr { public: virtual void start( not_null animation, std::unique_ptr state) = 0; virtual void failed(not_null animation, Error error) = 0; virtual void updateFrameRequest( not_null animation, const FrameRequest &request) = 0; virtual bool markFrameShown() = 0; virtual void checkStep() = 0; virtual ~Player() = default; }; } // namespace Lottie