mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-06 11:19:20 +00:00
This has been implemented in Qt for quite some time. This patch adds the same feature to AppKit. This is needed to run many WPT subtests with the AppKit chrome. This is also needed to handle window.open, target=_blank link clicks, etc.
29 lines
483 B
Objective-C
29 lines
483 B
Objective-C
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class LadybirdWebView;
|
|
|
|
@interface Tab : NSWindow
|
|
|
|
- (instancetype)init;
|
|
- (instancetype)initAsChild:(Tab*)parent
|
|
pageIndex:(u64)page_index;
|
|
|
|
- (void)tabWillClose;
|
|
|
|
- (void)openInspector:(id)sender;
|
|
- (void)onInspectorClosed;
|
|
|
|
@property (nonatomic, strong) LadybirdWebView* web_view;
|
|
|
|
@end
|