Wrapper.h 484 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/NonnullRefPtr.h>
  8. #include <AK/Weakable.h>
  9. #include <LibJS/Runtime/Object.h>
  10. #include <LibWeb/Forward.h>
  11. namespace Web::Bindings {
  12. class Wrapper
  13. : public JS::Object
  14. , public Weakable<Wrapper> {
  15. JS_OBJECT(Wrapper, JS::Object);
  16. public:
  17. protected:
  18. explicit Wrapper(Object& prototype)
  19. : Object(prototype)
  20. {
  21. }
  22. };
  23. }