mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-20 19:00:25 +00:00
When an element is fullscreened, we now hide the application menu and location bar. The user can hover over the top of the window to make them show. When fullscreen is requested for the application directly from the UI, we do not hide the location bar. This matches Safari's behavior.
35 lines
673 B
Objective-C
35 lines
673 B
Objective-C
/*
|
|
* Copyright (c) 2023-2026, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
#include <LibURL/URL.h>
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class Tab;
|
|
|
|
@interface TabController : NSWindowController <NSWindowDelegate>
|
|
|
|
- (instancetype)init;
|
|
- (instancetype)initAsChild:(Tab*)parent
|
|
pageIndex:(u64)page_index;
|
|
|
|
- (void)loadURL:(URL::URL const&)url;
|
|
|
|
- (void)onLoadStart:(URL::URL const&)url isRedirect:(BOOL)isRedirect;
|
|
|
|
- (void)onURLChange:(URL::URL const&)url;
|
|
|
|
- (void)onEnterFullscreenWindow;
|
|
- (void)onExitFullscreenWindow;
|
|
|
|
- (void)clearHistory;
|
|
|
|
- (void)focusLocationToolbarItem;
|
|
|
|
@end
|