mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Implement navigator.clipboard.readText
This commit is contained in:
parent
7f8f72556a
commit
a1985e57e7
Notes:
github-actions[bot]
2025-05-02 21:47:28 +00:00
Author: https://github.com/trflynn89
Commit: a1985e57e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4548
Reviewed-by: https://github.com/shannonbooth
3 changed files with 113 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue