UI/AppKit: Add UI components to enable DevTools at runtime

This commit is contained in:
Timothy Flynn 2025-03-15 10:10:17 -04:00 committed by Alexander Kalenik
commit 28574e2812
Notes: github-actions[bot] 2025-03-15 18:10:45 +00:00
4 changed files with 188 additions and 1 deletions

View 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