1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

Ladybird: Rename WebView to SimpleWebView

This will allow us to share code with LibWebView from SerenityOS.
(This would otherwise not work, since its "WebView" namespace collides
with our "WebView" class.)

Also, we should eventually move towards a more sophisticated
multi-process WebView like OOPWV.
This commit is contained in:
Andreas Kling 2022-09-25 12:02:05 +02:00 committed by Andrew Kaster
parent eecee7369f
commit 2a021084e5
12 changed files with 54 additions and 54 deletions

View file

@ -17,13 +17,13 @@
#include <LibJS/Forward.h>
#include <LibWeb/Forward.h>
class WebView;
class SimpleWebView;
namespace Ladybird {
class ConsoleClient final : public JS::ConsoleClient {
public:
ConsoleClient(JS::Console&, JS::Realm&, WebView&);
ConsoleClient(JS::Console&, JS::Realm&, SimpleWebView&);
void handle_input(String const& js_source);
void send_messages(i32 start_index);
@ -32,7 +32,7 @@ private:
virtual void clear() override;
virtual JS::ThrowCompletionOr<JS::Value> printer(JS::Console::LogLevel log_level, PrinterArguments) override;
WebView& m_view;
SimpleWebView& m_view;
WeakPtr<JS::Interpreter> m_interpreter;
JS::Handle<ConsoleGlobalObject> m_console_global_object;