mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +00:00 
			
		
		
		
	 d24667a1b6
			
		
	
	
		d24667a1b6
		
	
	
	
	
		
			
			The `document_fully_loaded` event should use the adjective "completely" so as to match the spec and code convention. See `Document::is_completely_loaded` and `m_completely_loaded_time`.
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			753 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			753 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibJS/Forward.h>
 | |
| #include <LibJS/SafeFunction.h>
 | |
| #include <LibWeb/Bindings/PlatformObject.h>
 | |
| #include <LibWeb/Forward.h>
 | |
| 
 | |
| namespace Web::DOM {
 | |
| 
 | |
| class DocumentObserver final : public Bindings::PlatformObject {
 | |
|     WEB_PLATFORM_OBJECT(DocumentObserver, Bindings::PlatformObject);
 | |
| 
 | |
| public:
 | |
|     JS::SafeFunction<void()> document_became_inactive;
 | |
|     JS::SafeFunction<void()> document_completely_loaded;
 | |
| 
 | |
| private:
 | |
|     explicit DocumentObserver(JS::Realm&, DOM::Document&);
 | |
| 
 | |
|     virtual void visit_edges(Cell::Visitor&) override;
 | |
|     virtual void finalize() override;
 | |
| 
 | |
|     JS::NonnullGCPtr<DOM::Document> m_document;
 | |
| };
 | |
| 
 | |
| }
 |