mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
You would have to just know that you need to define the constructor with this declaration. Let's allow subclasses to define constructors as they see fit.
28 lines
559 B
Objective-C
28 lines
559 B
Objective-C
/*
|
|
* Copyright (c) 2023-2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWebView/Application.h>
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
namespace Ladybird {
|
|
|
|
class Application final : public WebView::Application {
|
|
WEB_VIEW_APPLICATION(Application)
|
|
|
|
private:
|
|
explicit Application();
|
|
|
|
virtual Optional<ByteString> ask_user_for_download_folder() const override;
|
|
virtual NonnullOwnPtr<Core::EventLoop> create_platform_event_loop() override;
|
|
};
|
|
|
|
}
|
|
|
|
@interface Application : NSApplication
|
|
@end
|