RemoteBrowsingContext.cpp 735 B

123456789101112131415161718192021222324252627282930
  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::NonnullGCPtr<RemoteBrowsingContext> RemoteBrowsingContext::create_a_new_remote_browsing_context(String handle)
  9. {
  10. auto browsing_context = Bindings::main_thread_vm().heap().allocate_without_realm<RemoteBrowsingContext>(handle);
  11. return browsing_context;
  12. }
  13. HTML::WindowProxy* RemoteBrowsingContext::window_proxy()
  14. {
  15. return nullptr;
  16. }
  17. HTML::WindowProxy const* RemoteBrowsingContext::window_proxy() const
  18. {
  19. return nullptr;
  20. }
  21. RemoteBrowsingContext::RemoteBrowsingContext(String handle)
  22. : m_window_handle(handle) {};
  23. }