1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Ladybird/WebView: Move our PageClient to its own file

And rename it to PageClientLadybird while we're at it, it's not
"headless" by any means.
This commit is contained in:
Andreas Kling 2022-09-19 11:06:23 +02:00 committed by Andrew Kaster
parent 97964bc710
commit 4cc82ac638
7 changed files with 414 additions and 290 deletions

19
Ladybird/Utilities.cpp Normal file
View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "Utilities.h"
AK::String akstring_from_qstring(QString const& qstring)
{
return AK::String(qstring.toUtf8().data());
}
QString qstring_from_akstring(AK::String const& akstring)
{
return QString::fromUtf8(akstring.characters(), akstring.length());
}