mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	The Window object is part of the HTML spec. :^) https://html.spec.whatwg.org/multipage/window-object.html
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			1,020 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			1,020 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <LibWeb/HTML/Scripting/Environments.h>
 | 
						|
#include <LibWeb/HTML/Window.h>
 | 
						|
 | 
						|
namespace Web::HTML {
 | 
						|
 | 
						|
class WindowEnvironmentSettingsObject final : public EnvironmentSettingsObject {
 | 
						|
public:
 | 
						|
    static void setup(AK::URL& creation_url, JS::ExecutionContext& execution_context /* FIXME: null or an environment reservedEnvironment, a URL topLevelCreationURL, and an origin topLevelOrigin */);
 | 
						|
 | 
						|
    virtual ~WindowEnvironmentSettingsObject() override = default;
 | 
						|
 | 
						|
    virtual RefPtr<DOM::Document> responsible_document() override;
 | 
						|
    virtual String api_url_character_encoding() override;
 | 
						|
    virtual AK::URL api_base_url() override;
 | 
						|
    virtual Origin origin() override;
 | 
						|
    virtual CanUseCrossOriginIsolatedAPIs cross_origin_isolated_capability() override;
 | 
						|
 | 
						|
private:
 | 
						|
    WindowEnvironmentSettingsObject(Window&, JS::ExecutionContext& execution_context);
 | 
						|
 | 
						|
    NonnullRefPtr<Window> m_window;
 | 
						|
};
 | 
						|
 | 
						|
}
 |