Skip to content

Commit

Permalink
[macos] Add WKUIDelegate runOpenPanelWith bindings (#2495) (#2500)
Browse files Browse the repository at this point in the history
  • Loading branch information
chamons authored Aug 17, 2017
1 parent 35e1985 commit fed365d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/wkwebkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ interface WKWebsiteDataStore : NSCoding {
[Async]
void RemoveDataOfTypes (NSSet<NSString> websiteDataTypes, NSDate date, Action completionHandler);
}

[Mac (10,12, onlyOn64 : true)][NoiOS, NoWatch, NoTV]
[BaseType (typeof(NSObject))]
interface WKOpenPanelParameters {
[Export ("allowsMultipleSelection")]
bool AllowsMultipleSelection { get; }
}

[Mac (10,10, onlyOn64 : true), iOS (8,0)]
[Protocol, Model]
Expand All @@ -317,6 +324,10 @@ WKWebView CreateWebView (WKWebView webView, WKWebViewConfiguration configuration
void RunJavaScriptTextInputPanel (WKWebView webView, string prompt, [NullAllowed] string defaultText,
WKFrameInfo frame, Action<string> completionHandler);

[Mac (10,12, onlyOn64 : true)][NoiOS, NoWatch, NoTV]
[Export ("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:")]
void RunOpenPanel (WKWebView webView, WKOpenPanelParameters parameters, WKFrameInfo frame, Action<NSUrl[]> completionHandler);

[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
[Export ("webViewDidClose:")]
void DidClose (WKWebView webView);
Expand Down

0 comments on commit fed365d

Please sign in to comment.