LibWeb: Extract the TextEncoderCommon mixin to its own IDL file

Co-Authored-By: Tim Flynn <trflynn89@pm.me>
This commit is contained in:
Luke Wilde 2025-02-07 12:40:26 +00:00 committed by Tim Flynn
parent c14d5f27f9
commit 24d5f24749
Notes: github-actions[bot] 2025-02-07 16:05:58 +00:00
7 changed files with 57 additions and 14 deletions

View file

@ -0,0 +1,24 @@
/*
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
namespace Web::Encoding {
class TextEncoderCommonMixin {
public:
virtual ~TextEncoderCommonMixin();
// https://encoding.spec.whatwg.org/#dom-textencoder-encoding
FlyString const& encoding() const;
protected:
TextEncoderCommonMixin();
};
}