mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Everywhere: Move the Ladybird folder to UI
This commit is contained in:
parent
93712b24bf
commit
db47cc41f8
Notes:
github-actions[bot]
2024-11-10 11:51:45 +00:00
Author: https://github.com/trflynn89
Commit: db47cc41f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
203 changed files with 266 additions and 244 deletions
57
UI/AppKit/Interface/TabController.h
Normal file
57
UI/AppKit/Interface/TabController.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* Copyright (c) 2023-2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibURL/URL.h>
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class Tab;
|
||||
|
||||
struct TabSettings {
|
||||
BOOL should_show_line_box_borders { NO };
|
||||
BOOL scripting_enabled { YES };
|
||||
BOOL block_popups { YES };
|
||||
BOOL autoplay_enabled { NO };
|
||||
BOOL same_origin_policy_enabled { NO };
|
||||
ByteString user_agent_name { "Disabled"sv };
|
||||
ByteString navigator_compatibility_mode { "chrome"sv };
|
||||
};
|
||||
|
||||
@interface TabController : NSWindowController <NSWindowDelegate>
|
||||
|
||||
- (instancetype)init;
|
||||
- (instancetype)initAsChild:(Tab*)parent
|
||||
pageIndex:(u64)page_index;
|
||||
|
||||
- (void)loadURL:(URL::URL const&)url;
|
||||
- (void)loadHTML:(StringView)html url:(URL::URL const&)url;
|
||||
|
||||
- (void)onLoadStart:(URL::URL const&)url isRedirect:(BOOL)isRedirect;
|
||||
|
||||
- (void)onURLChange:(URL::URL const&)url;
|
||||
- (void)onBackNavigationEnabled:(BOOL)back_enabled
|
||||
forwardNavigationEnabled:(BOOL)forward_enabled;
|
||||
|
||||
- (void)onTitleChange:(ByteString const&)title;
|
||||
|
||||
- (void)onCreateNewTab;
|
||||
|
||||
- (void)navigateBack:(id)sender;
|
||||
- (void)navigateForward:(id)sender;
|
||||
- (void)reload:(id)sender;
|
||||
- (void)clearHistory;
|
||||
|
||||
- (void)setPopupBlocking:(BOOL)block_popups;
|
||||
- (void)setScripting:(BOOL)enabled;
|
||||
- (void)setAutoplay:(BOOL)enabled;
|
||||
- (void)debugRequest:(ByteString const&)request argument:(ByteString const&)argument;
|
||||
|
||||
- (void)focusLocationToolbarItem;
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue