mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-11 02:07:20 +00:00
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.
23 lines
348 B
Objective-C
23 lines
348 B
Objective-C
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#import <System/Cocoa.h>
|
|
|
|
@class LadybirdWebView;
|
|
|
|
@interface Tab : NSWindow
|
|
|
|
- (void)tabWillClose;
|
|
|
|
- (void)openConsole:(id)sender;
|
|
- (void)onConsoleClosed;
|
|
|
|
@property (nonatomic, strong) LadybirdWebView* web_view;
|
|
|
|
@end
|