mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
This will allow us to internally create a new tab with HTML, to be used by the View Source command.
25 lines
524 B
Objective-C
25 lines
524 B
Objective-C
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
#include <LibWeb/CSS/PreferredColorScheme.h>
|
|
|
|
#import <System/Cocoa.h>
|
|
|
|
@interface LadybirdWebView : NSClipView
|
|
|
|
- (void)loadURL:(URL const&)url;
|
|
- (void)loadHTML:(StringView)html url:(URL const&)url;
|
|
|
|
- (void)handleResize;
|
|
- (void)handleScroll;
|
|
- (void)handleVisibility:(BOOL)is_visible;
|
|
|
|
- (void)setPreferredColorScheme:(Web::CSS::PreferredColorScheme)color_scheme;
|
|
|
|
@end
|