Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion src/WebKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public enum DomCssRuleType : ushort {
Page = 6,
Variables = 7,
WebKitKeyFrames = 8,
WebKitKeyFrame = 9
WebKitKeyFrame = 9,
NamespaceRule = 10,
}

public enum DomCssValueType : ushort {
Expand Down
4 changes: 2 additions & 2 deletions src/appkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11969,7 +11969,7 @@ partial interface NSRulerView {
bool IsFlipped { get; }

//Detected properties
[Export ("scrollView")]
[Export ("scrollView", ArgumentSemantic.Weak)]
NSScrollView ScrollView { get; set; }

[Export ("orientation")]
Expand All @@ -11990,7 +11990,7 @@ partial interface NSRulerView {
[Export ("originOffset")]
nfloat OriginOffset { get; set; }

[Export ("clientView")]
[Export ("clientView", ArgumentSemantic.Weak)]
NSView ClientView { get; set; }

[Export ("markers", ArgumentSemantic.Copy), NullAllowed]
Expand Down
27 changes: 27 additions & 0 deletions src/safariservices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#endif

namespace XamCore.SafariServices {
delegate void SFExtensionValidationHandler (bool shouldHide, NSString text);

[Mac (10,12, onlyOn64: true)][iOS (10,0)]
[BaseType (typeof(NSObject))]
interface SFContentBlockerState
Expand Down Expand Up @@ -128,6 +130,11 @@ interface SFSafariApplication
[Static]
[Export ("showPreferencesForExtensionWithIdentifier:completionHandler:")]
void ShowPreferencesForExtension (string identifier, [NullAllowed] Action<NSError> completionHandler);

[Mac (10, 12, 4)]
[Static][Async]
[Export ("dispatchMessageWithName:toExtensionWithIdentifier:userInfo:completionHandler:")]
void DispatchMessage (string messageName, string identifier, [NullAllowed] NSDictionary<NSString, NSObject> userInfo, [NullAllowed] Action<NSError> completionHandler);
}

[Mac (10,12, onlyOn64 : true)]
Expand Down Expand Up @@ -171,6 +178,14 @@ interface SFSafariExtensionHandling

[Export ("popoverViewController")]
SFSafariExtensionViewController PopoverViewController { get; }

[Mac (10, 12, 4)]
[Async (ResultTypeName="SFExtensionValidationResult")][Export ("validateContextMenuItemWithCommand:inPage:userInfo:validationHandler:")]
void ValidateContextMenuItem (string command, SFSafariPage page, [NullAllowed] NSDictionary<NSString, NSObject> userInfo, SFExtensionValidationHandler validationHandler);

[Mac (10, 12, 4)]
[Export ("messageReceivedFromContainingAppWithName:userInfo:")]
void MessageReceivedFromContainingApp (string messageName, [NullAllowed] NSDictionary<NSString, NSObject> userInfo);
}

[Mac (10,12, onlyOn64: true)]
Expand Down Expand Up @@ -215,6 +230,18 @@ interface SFSafariToolbarItem
{
[Export ("setEnabled:withBadgeText:")]
void SetEnabled (bool enabled, [NullAllowed] string badgeText);

[Mac (10, 12, 4)]
[Export ("setEnabled:")]
void SetEnabled (bool enabled);

[Mac (10, 12, 4)]
[Export ("setBadgeText:")]
void SetBadgeText ([NullAllowed] string badgeText);

[Mac (10, 12, 4)]
[Export ("setImage:")]
void SetImage ([NullAllowed] NSImage image);
}

[Mac (10,12, onlyOn64: true)]
Expand Down