TimeRanges.h 551 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Forward.h>
  8. #include <LibWeb/Bindings/PlatformObject.h>
  9. namespace Web::HTML {
  10. class TimeRanges final : public Bindings::PlatformObject {
  11. WEB_PLATFORM_OBJECT(TimeRanges, Bindings::PlatformObject);
  12. public:
  13. size_t length() const;
  14. double start(u32 index) const;
  15. double end(u32 index) const;
  16. private:
  17. explicit TimeRanges(JS::Realm&);
  18. virtual void initialize(JS::Realm&) override;
  19. };
  20. }