HTMLFrameSetElement.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLElement.h>
  8. #include <LibWeb/HTML/WindowEventHandlers.h>
  9. namespace Web::HTML {
  10. // NOTE: This element is marked as obsolete, but is still listed as required by the specification.
  11. class HTMLFrameSetElement final
  12. : public HTMLElement
  13. , public WindowEventHandlers {
  14. WEB_PLATFORM_OBJECT(HTMLFrameSetElement, HTMLElement);
  15. GC_DECLARE_ALLOCATOR(HTMLFrameSetElement);
  16. public:
  17. virtual ~HTMLFrameSetElement() override;
  18. private:
  19. HTMLFrameSetElement(DOM::Document&, DOM::QualifiedName);
  20. virtual void adjust_computed_style(CSS::StyleProperties&) override;
  21. virtual void initialize(JS::Realm&) override;
  22. virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
  23. // ^HTML::GlobalEventHandlers
  24. virtual GC::Ptr<EventTarget> global_event_handlers_to_event_target(FlyString const& event_name) override;
  25. // ^HTML::WindowEventHandlers
  26. virtual GC::Ptr<EventTarget> window_event_handlers_to_event_target() override;
  27. };
  28. }