2023-08-20 16:14:31 -04:00
|
|
|
/*
|
2024-07-30 14:01:05 -04:00
|
|
|
* Copyright (c) 2023-2024, Tim Flynn <trflynn89@serenityos.org>
|
2023-08-20 16:14:31 -04:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-04-15 17:39:48 -06:00
|
|
|
#include <AK/Error.h>
|
2024-04-17 18:44:39 -06:00
|
|
|
#include <LibIPC/Forward.h>
|
2024-07-30 14:01:05 -04:00
|
|
|
#include <LibMain/Main.h>
|
|
|
|
|
#include <LibURL/URL.h>
|
2024-04-15 17:39:48 -06:00
|
|
|
#include <LibWebView/Forward.h>
|
|
|
|
|
|
2024-07-16 23:54:53 -06:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2023-08-20 16:14:31 -04:00
|
|
|
|
2024-04-15 17:39:48 -06:00
|
|
|
namespace Ladybird {
|
|
|
|
|
class WebViewBridge;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
@interface Application : NSApplication
|
|
|
|
|
|
2024-07-30 14:01:05 -04:00
|
|
|
- (void)setupWebViewApplication:(Main::Arguments&)arguments
|
|
|
|
|
newTabPageURL:(URL::URL)new_tab_page_url;
|
2024-04-15 17:39:48 -06:00
|
|
|
|
2024-07-30 14:01:05 -04:00
|
|
|
- (ErrorOr<void>)launchRequestServer;
|
2024-06-26 13:44:42 -06:00
|
|
|
- (ErrorOr<void>)launchImageDecoder;
|
2024-04-15 17:39:48 -06:00
|
|
|
- (ErrorOr<NonnullRefPtr<WebView::WebContentClient>>)launchWebContent:(Ladybird::WebViewBridge&)web_view_bridge;
|
2024-04-17 18:44:39 -06:00
|
|
|
- (ErrorOr<IPC::File>)launchWebWorker;
|
2024-04-15 17:39:48 -06:00
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
@end
|