ImageProvider.h 345 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. namespace Web::Layout {
  8. class ImageProvider {
  9. public:
  10. virtual ~ImageProvider() { }
  11. virtual RefPtr<Gfx::Bitmap const> current_image_bitmap() const = 0;
  12. virtual void set_visible_in_viewport(bool) = 0;
  13. };
  14. }