[XM] Add missing SafariServices binding (#681)

This commit is contained in:
Chris Hamons 2016-08-26 10:30:45 -05:00 коммит произвёл GitHub
Родитель a617bee08f
Коммит bc9c25de72
2 изменённых файлов: 27 добавлений и 0 удалений

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

@ -123,6 +123,10 @@ namespace XamCore.SafariServices {
[Static]
[Export ("setToolbarItemsNeedUpdate")]
void SetToolbarItemsNeedUpdate ();
[Static]
[Export ("showPreferencesForExtensionWithIdentifier:completionHandler:")]
void ShowPreferencesForExtension (string identifier, [NullAllowed] Action<NSError> completionHandler);
}
[Mac (10,12, onlyOn64 : true)]
@ -241,5 +245,23 @@ namespace XamCore.SafariServices {
interface SFSafariExtensionHandler : NSExtensionRequestHandling, SFSafariExtensionHandling
{
}
// TODO - Needs Safari Extension support to test
// [Mac (10,12)]
// [BaseType (typeof(NSObject))]
// interface SFSafariExtensionManager
// {
// [Static]
// [Export ("getStateOfSafariExtensionWithIdentifier:completionHandler:")]
// void GetStateOfSafariExtension (string identifier, Action<SFSafariExtensionState, NSError> completionHandler);
// }
//
// [Mac (10,12)]
// [BaseType (typeof(NSObject))]
// interface SFSafariExtensionState
// {
// [Export ("enabled")]
// bool Enabled { [Bind ("isEnabled")] get; }
// }
#endif
}

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

@ -197,3 +197,8 @@
!unknown-native-enum! NSType bound
!unknown-native-enum! SLComposeViewControllerResult bound
# Bound but commented out until we can test w\ template
!missing-selector! +SFSafariExtensionManager::getStateOfSafariExtensionWithIdentifier:completionHandler: not bound
!missing-type! SFSafariExtensionManager not bound
!missing-selector! SFSafariExtensionState::isEnabled not bound
!missing-type! SFSafariExtensionState not bound