mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
5e1499d104
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
42 lines
966 B
Objective-C
42 lines
966 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>
|
|
|
|
struct TabSettings {
|
|
BOOL should_show_line_box_borders { NO };
|
|
BOOL scripting_enabled { YES };
|
|
BOOL block_popups { YES };
|
|
BOOL same_origin_policy_enabled { NO };
|
|
ByteString user_agent_name { "Disabled"sv };
|
|
};
|
|
|
|
@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:(ByteString const&)title;
|
|
|
|
- (void)navigateBack:(id)sender;
|
|
- (void)navigateForward:(id)sender;
|
|
- (void)reload:(id)sender;
|
|
- (void)clearHistory;
|
|
|
|
- (void)debugRequest:(ByteString const&)request argument:(ByteString const&)argument;
|
|
|
|
- (void)focusLocationToolbarItem;
|
|
|
|
@end
|