LibWeb: Implement navigator.clipboard.readText

This commit is contained in:
Timothy Flynn 2025-05-01 11:44:03 -04:00 committed by Tim Flynn
commit a1985e57e7
Notes: github-actions[bot] 2025-05-02 21:47:28 +00:00
3 changed files with 113 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
* Copyright (c) 2023-2025, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -23,6 +23,8 @@ public:
static WebIDL::ExceptionOr<GC::Ref<Clipboard>> construct_impl(JS::Realm&);
virtual ~Clipboard() override;
GC::Ref<WebIDL::Promise> read_text();
GC::Ref<WebIDL::Promise> write_text(String);
private: