mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
24 lines
520 B
C++
24 lines
520 B
C++
/*
|
|
* Copyright (c) 2025, Gregory Bertilson <gregory@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "ResumingStateHandler.h"
|
|
|
|
#include <LibMedia/PlaybackManager.h>
|
|
#include <LibMedia/PlaybackStates/PausedStateHandler.h>
|
|
#include <LibMedia/PlaybackStates/PlayingStateHandler.h>
|
|
|
|
namespace Media {
|
|
|
|
void ResumingStateHandler::resume()
|
|
{
|
|
if (m_playing)
|
|
manager().replace_state_handler<PlayingStateHandler>();
|
|
else
|
|
manager().replace_state_handler<PausedStateHandler>();
|
|
}
|
|
|
|
}
|