mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-11 18:51:05 +00:00
26 lines
472 B
C
26 lines
472 B
C
|
|
/*
|
||
|
|
* 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
|