diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/ImageProvider.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/ImageProvider.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ImageProvider.h b/Userland/Libraries/LibWeb/Layout/ImageProvider.h new file mode 100644 index 0000000000..39537295c2 --- /dev/null +++ b/Userland/Libraries/LibWeb/Layout/ImageProvider.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2023, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +namespace Web::Layout { + +class ImageProvider { +public: + virtual ~ImageProvider() { } + + virtual RefPtr<Gfx::Bitmap const> current_image_bitmap() const = 0; + virtual void set_visible_in_viewport(bool) = 0; +}; + +} |