2023-08-20 20:14:31 +00:00
|
|
|
/*
|
2024-10-29 15:05:25 +00:00
|
|
|
* Copyright (c) 2023-2024, Tim Flynn <trflynn89@ladybird.org>
|
2023-08-20 20:14:31 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-09-17 19:49:00 +00:00
|
|
|
#include <AK/Types.h>
|
|
|
|
|
2024-07-17 05:54:53 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2024-11-09 17:50:33 +00:00
|
|
|
#import <Interface/LadybirdWebViewWindow.h>
|
2023-08-20 20:14:31 +00:00
|
|
|
|
|
|
|
@class LadybirdWebView;
|
|
|
|
|
2024-10-29 15:05:25 +00:00
|
|
|
@interface Tab : LadybirdWebViewWindow
|
2023-08-20 20:14:31 +00:00
|
|
|
|
2024-09-17 19:49:00 +00:00
|
|
|
- (instancetype)init;
|
|
|
|
- (instancetype)initAsChild:(Tab*)parent
|
|
|
|
pageIndex:(u64)page_index;
|
|
|
|
|
2023-08-27 02:43:35 +00:00
|
|
|
- (void)tabWillClose;
|
|
|
|
|
2023-09-13 18:55:34 +00:00
|
|
|
- (void)openInspector:(id)sender;
|
|
|
|
- (void)onInspectorClosed;
|
|
|
|
|
2023-08-20 20:14:31 +00:00
|
|
|
@end
|