mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			850 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			850 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2020, the SerenityOS developers.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <LibWeb/HTML/HTMLMediaElement.h>
 | 
						|
 | 
						|
namespace Web::HTML {
 | 
						|
 | 
						|
class HTMLAudioElement final : public HTMLMediaElement {
 | 
						|
    WEB_PLATFORM_OBJECT(HTMLAudioElement, HTMLMediaElement);
 | 
						|
 | 
						|
public:
 | 
						|
    virtual ~HTMLAudioElement() override;
 | 
						|
 | 
						|
    Layout::AudioBox* layout_node();
 | 
						|
    Layout::AudioBox const* layout_node() const;
 | 
						|
 | 
						|
private:
 | 
						|
    HTMLAudioElement(DOM::Document&, DOM::QualifiedName);
 | 
						|
 | 
						|
    virtual void initialize(JS::Realm&) override;
 | 
						|
 | 
						|
    virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
 | 
						|
 | 
						|
    virtual void on_playing() override;
 | 
						|
    virtual void on_paused() override;
 | 
						|
    virtual void on_seek(double, MediaSeekMode) override;
 | 
						|
    virtual void on_volume_change() override;
 | 
						|
};
 | 
						|
 | 
						|
}
 |