Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebKit] Add support for Xcode 14 beta 5. #15700

Merged
merged 3 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/wkwebkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ public enum WKFullscreenState : long {
ExitingFullscreen,
}

[iOS (16,0), MacCatalyst (16,0), Mac (13,0)]
[Native]
public enum WKDialogResult : long
{
ShowDefault = 1,
AskAgain,
Handled,
}

[iOS (8,0), Mac (10,10)] // Not defined in 32-bit
[BaseType (typeof (NSObject))]
[DisableDefaultCtor ()] // Crashes during deallocation in Xcode 6 beta 2. radar 17377712.
Expand Down Expand Up @@ -626,6 +635,11 @@ void RunJavaScriptTextInputPanel (WKWebView webView, string prompt, [NullAllowed
[Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV]
[Export ("webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:")]
void RequestMediaCapturePermission (WKWebView webView, WKSecurityOrigin origin, WKFrameInfo frame, WKMediaCaptureType type, Action<WKPermissionDecision> decisionHandler);

[Async]
[NoMac, iOS (16,0), MacCatalyst (16,0)] // headers say 13, is not true since the enum is from 16
[Export ("webView:showLockdownModeFirstUseMessage:completionHandler:")]
void WebView (WKWebView webView, string message, Action<WKDialogResult> completionHandler);
mandel-macaque marked this conversation as resolved.
Show resolved Hide resolved
}

[iOS (8,0), Mac (10,10)] // Not defined in 32-bit
Expand Down
2 changes: 0 additions & 2 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-WebKit.todo

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions tests/xtro-sharpie/iOS-WebKit.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/macOS-WebKit.todo

This file was deleted.