RemoteBrowsingContext.cpp 780 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/HTML/RemoteBrowsingContext.h>
  7. namespace Web::HTML {
  8. JS_DEFINE_ALLOCATOR(RemoteBrowsingContext);
  9. JS::NonnullGCPtr<RemoteBrowsingContext> RemoteBrowsingContext::create_a_new_remote_browsing_context(String handle)
  10. {
  11. auto browsing_context = Bindings::main_thread_vm().heap().allocate_without_realm<RemoteBrowsingContext>(handle);
  12. return browsing_context;
  13. }
  14. HTML::WindowProxy* RemoteBrowsingContext::window_proxy()
  15. {
  16. return nullptr;
  17. }
  18. HTML::WindowProxy const* RemoteBrowsingContext::window_proxy() const
  19. {
  20. return nullptr;
  21. }
  22. RemoteBrowsingContext::RemoteBrowsingContext(String handle)
  23. : m_window_handle(handle) {};
  24. }