mirror of
https://github.com/RGBCube/serenity
synced 2026-01-19 11:41:10 +00:00
This will allow us to internally create a new tab with HTML, to be used by the View Source command.
31 lines
654 B
Objective-C
31 lines
654 B
Objective-C
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
#include <AK/URL.h>
|
|
|
|
#import <System/Cocoa.h>
|
|
|
|
@interface TabController : NSWindowController <NSWindowDelegate>
|
|
|
|
- (instancetype)init;
|
|
|
|
- (void)loadURL:(URL const&)url;
|
|
- (void)loadHTML:(StringView)html url:(URL const&)url;
|
|
|
|
- (void)onLoadStart:(URL const&)url isRedirect:(BOOL)isRedirect;
|
|
- (void)onTitleChange:(DeprecatedString const&)title;
|
|
|
|
- (void)navigateBack:(id)sender;
|
|
- (void)navigateForward:(id)sender;
|
|
- (void)reload:(id)sender;
|
|
- (void)clearHistory;
|
|
|
|
- (void)focusLocationToolbarItem;
|
|
|
|
@end
|