mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
UI/AppKit: Add UI components to enable DevTools at runtime
This commit is contained in:
parent
df7917d705
commit
28574e2812
Notes:
github-actions[bot]
2025-03-15 18:10:45 +00:00
Author: https://github.com/trflynn89
Commit: 28574e2812
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3956
4 changed files with 188 additions and 1 deletions
25
UI/AppKit/Interface/InfoBar.h
Normal file
25
UI/AppKit/Interface/InfoBar.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class Tab;
|
||||
|
||||
using InfoBarDismissed = void (^)(void);
|
||||
|
||||
@interface InfoBar : NSStackView
|
||||
|
||||
- (void)showWithMessage:(NSString*)message
|
||||
dismissButtonTooltip:(NSString*)tooltip
|
||||
dismissButtonClicked:(InfoBarDismissed)on_dimissed
|
||||
activeTab:(Tab*)tab;
|
||||
- (void)hide;
|
||||
|
||||
- (void)tabBecameActive:(Tab*)tab;
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue