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

Ladybird: Implement a JavaScript console for the AppKit chrome

This adds menu items to open an interactive JavaScript console for a web
page. This more or less mimics the Qt implementation of the console.
Hooks are included to tie the lifetime of the console window with the
tab it belongs to; if the tab is closed, the console window is closed.
This commit is contained in:
Timothy Flynn 2023-08-26 22:43:35 -04:00 committed by Andrew Kaster
parent bf59e06d2a
commit 4d26e4650f
11 changed files with 306 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#include <LibGfx/Forward.h>
#include <LibWeb/CSS/PreferredColorScheme.h>
#include <LibWeb/HTML/ActivateTab.h>
#include <LibWebView/Forward.h>
#import <System/Cocoa.h>
@ -41,6 +42,7 @@
- (void)loadURL:(URL const&)url;
- (void)loadHTML:(StringView)html url:(URL const&)url;
- (WebView::ViewImplementation&)view;
- (String const&)handle;
- (void)handleResize;