mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-20 19:00:25 +00:00
33 lines
842 B
Objective-C
33 lines
842 B
Objective-C
/*
|
|
* Copyright (c) 2025-2026, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Interface/Menu.h>
|
|
#include <LibWebView/Menu.h>
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class LadybirdWebView;
|
|
|
|
namespace Ladybird {
|
|
|
|
NSMenu* create_application_menu(WebView::Menu&);
|
|
void repopulate_application_menu(NSMenu*, WebView::Menu&);
|
|
|
|
NSMenu* create_context_menu(LadybirdWebView*, WebView::Menu&);
|
|
|
|
NSMenuItem* create_application_menu_item(WebView::Action&);
|
|
NSButton* create_application_button(WebView::Action&);
|
|
NSImageView* create_application_icon(WebView::Action&);
|
|
|
|
void add_control_properties(id control, WebView::Action const&);
|
|
void add_control_properties(id control, WebView::Menu const&);
|
|
NSString* get_control_property(id control, NSString* key);
|
|
|
|
void set_control_image(id control, NSString*);
|
|
|
|
}
|