MainThreadVM.h 433 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Forward.h>
  8. #include <LibJS/Runtime/VM.h>
  9. #include <LibWeb/HTML/EventLoop/EventLoop.h>
  10. namespace Web::Bindings {
  11. struct WebEngineCustomData final : public JS::VM::CustomData {
  12. virtual ~WebEngineCustomData() override { }
  13. HTML::EventLoop event_loop;
  14. };
  15. JS::VM& main_thread_vm();
  16. }