mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <AK/Assertions.h>
 | 
						|
 | 
						|
namespace Web::HTML {
 | 
						|
 | 
						|
enum class AudioPlayState {
 | 
						|
    Paused,
 | 
						|
    Playing,
 | 
						|
};
 | 
						|
 | 
						|
enum class MuteState {
 | 
						|
    Muted,
 | 
						|
    Unmuted,
 | 
						|
};
 | 
						|
 | 
						|
constexpr MuteState invert_mute_state(MuteState mute_state)
 | 
						|
{
 | 
						|
    switch (mute_state) {
 | 
						|
    case MuteState::Muted:
 | 
						|
        return MuteState::Unmuted;
 | 
						|
    case MuteState::Unmuted:
 | 
						|
        return MuteState::Muted;
 | 
						|
    }
 | 
						|
 | 
						|
    VERIFY_NOT_REACHED();
 | 
						|
}
 | 
						|
 | 
						|
}
 |