HTMLOptionsCollection.h 753 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2022, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/DOM/HTMLCollection.h>
  8. namespace Web::HTML {
  9. class HTMLOptionsCollection final : public DOM::HTMLCollection {
  10. public:
  11. using WrapperType = Bindings::HTMLOptionsCollectionWrapper;
  12. static NonnullRefPtr<HTMLOptionsCollection> create(DOM::ParentNode& root, Function<bool(DOM::Element const&)> filter)
  13. {
  14. return adopt_ref(*new HTMLOptionsCollection(root, move(filter)));
  15. }
  16. protected:
  17. HTMLOptionsCollection(DOM::ParentNode& root, Function<bool(DOM::Element const&)> filter);
  18. };
  19. }
  20. namespace Web::Bindings {
  21. HTMLOptionsCollectionWrapper* wrap(JS::GlobalObject&, HTML::HTMLOptionsCollection&);
  22. }