mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Introduce RemoteBrowsingContext
Remote browsing context represents top level browsing context that lives in another WebContent process.
This commit is contained in:
parent
40ec976781
commit
8026c63e10
3 changed files with 78 additions and 0 deletions
30
Userland/Libraries/LibWeb/HTML/RemoteBrowsingContext.cpp
Normal file
30
Userland/Libraries/LibWeb/HTML/RemoteBrowsingContext.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/HTML/RemoteBrowsingContext.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS::NonnullGCPtr<RemoteBrowsingContext> RemoteBrowsingContext::create_a_new_remote_browsing_context(String handle)
|
||||
{
|
||||
auto browsing_context = Bindings::main_thread_vm().heap().allocate_without_realm<RemoteBrowsingContext>(handle);
|
||||
return browsing_context;
|
||||
};
|
||||
|
||||
HTML::WindowProxy* RemoteBrowsingContext::window_proxy()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
HTML::WindowProxy const* RemoteBrowsingContext::window_proxy() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RemoteBrowsingContext::RemoteBrowsingContext(String handle)
|
||||
: m_window_handle(handle) {};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue