[macos] Add WKUIDelegate runOpenPanelWith bindings (#2495)

- https://bugzilla.xamarin.com/show_bug.cgi?id=58758
This commit is contained in:
Chris Hamons 2017-08-16 12:44:06 -05:00 коммит произвёл GitHub
Родитель 4529cdb922
Коммит a001cace6f
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -298,6 +298,13 @@ namespace XamCore.WebKit
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]
[BaseType (typeof (NSObject))]
@ -317,6 +324,10 @@ namespace XamCore.WebKit
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);