2023-08-20 16:14:31 -04:00
|
|
|
/*
|
2024-07-30 14:01:05 -04:00
|
|
|
* Copyright (c) 2023-2024, Tim Flynn <trflynn89@serenityos.org>
|
2023-08-20 16:14:31 -04:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
2024-03-18 16:22:27 +13:00
|
|
|
#include <LibURL/URL.h>
|
2023-08-20 16:14:31 -04:00
|
|
|
|
2024-07-16 23:54:53 -06:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2023-08-20 16:14:31 -04:00
|
|
|
|
2024-09-17 15:49:00 -04:00
|
|
|
@class Tab;
|
|
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
@interface TabController : NSWindowController <NSWindowDelegate>
|
|
|
|
|
|
2024-07-30 14:01:05 -04:00
|
|
|
- (instancetype)init;
|
2024-09-17 15:49:00 -04:00
|
|
|
- (instancetype)initAsChild:(Tab*)parent
|
|
|
|
|
pageIndex:(u64)page_index;
|
2023-08-20 16:14:31 -04:00
|
|
|
|
2024-03-18 16:22:27 +13:00
|
|
|
- (void)loadURL:(URL::URL const&)url;
|
2023-08-20 16:14:31 -04:00
|
|
|
|
2024-03-18 16:22:27 +13:00
|
|
|
- (void)onLoadStart:(URL::URL const&)url isRedirect:(BOOL)isRedirect;
|
2024-04-14 16:54:30 -04:00
|
|
|
|
|
|
|
|
- (void)onURLChange:(URL::URL const&)url;
|
|
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
- (void)clearHistory;
|
|
|
|
|
|
|
|
|
|
- (void)focusLocationToolbarItem;
|
|
|
|
|
|
|
|
|
|
@end
|