Skip to content

BrowserEngineKit iOS xcode16.0 b1

Rolf Bjarne Kvinge edited this page Sep 3, 2024 · 5 revisions

#BrowserEngineKit.framework https://github.com/xamarin/xamarin-macios/pull/21168

diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h	2024-05-30 11:42:04
@@ -0,0 +1,83 @@
+//
+//  BEAccessibility.h
+//  BrowserEngineKit
+//
+//  Copyright © 2024 Apple Inc. All rights reserved.
+//
+
+#import <BrowserEngineKit/BEMacros.h>
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSInteger, BEAccessibilityPressedState) {
+    BEAccessibilityPressedStateUndefined = 0,
+    BEAccessibilityPressedStateFalse,
+    BEAccessibilityPressedStateTrue,
+    BEAccessibilityPressedStateMixed,
+} BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+typedef NS_OPTIONS(NSUInteger, BEAccessibilityContainerType) {
+    BEAccessibilityContainerTypeNone             = 0,
+    BEAccessibilityContainerTypeLandmark         = 1 << 0,
+    BEAccessibilityContainerTypeTable            = 1 << 1,
+    BEAccessibilityContainerTypeList             = 1 << 2,
+    BEAccessibilityContainerTypeFieldset         = 1 << 3,
+    BEAccessibilityContainerTypeDialog           = 1 << 4,
+    BEAccessibilityContainerTypeTree             = 1 << 5,
+    BEAccessibilityContainerTypeFrame            = 1 << 6,
+    BEAccessibilityContainerTypeArticle          = 1 << 7,
+    BEAccessibilityContainerTypeSemanticGroup    = 1 << 8,
+    BEAccessibilityContainerTypeScrollArea       = 1 << 9,
+    BEAccessibilityContainerTypeAlert            = 1 << 10,
+    BEAccessibilityContainerTypeDescriptionList  = 1 << 11,
+} BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+@interface NSObject (BEAccessibility)
+
+/**
+ * Represents the value of aria-current.
+ * default: nil
+ */
+@property (nonatomic, strong, nullable) NSString *browserAccessibilityCurrentStatus BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ * Represents the value of aria-sort.
+ * default: nil
+ */
+@property (nonatomic, strong, nullable) NSString *browserAccessibilitySortDirection BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ * Represents the value of aria-roledescription.
+ * default: nil
+ */
+@property (nonatomic, strong, nullable) NSString *browserAccessibilityRoleDescription BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ * Represents the value of aria-required.
+ * default: false
+ */
+@property (nonatomic, assign) BOOL browserAccessibilityIsRequired BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ * Represents the value of aria-pressed.
+ * default: BEAccessibilityPressedStateUndefined
+ */
+@property (nonatomic, assign) BEAccessibilityPressedState browserAccessibilityPressedState BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ * Represents whether the current element has native DOM focus.
+ * default: false
+ */
+@property (nonatomic, assign) BOOL browserAccessibilityHasDOMFocus BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ * An option set of the types that contain this element. For example, an object within a table cell
+ * will return the Table container type.
+ * default: BEAccessibilityContainerTypeNone
+ */
+@property (nonatomic, assign) BEAccessibilityContainerType browserAccessibilityContainerType BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h	2024-05-30 11:42:04
@@ -0,0 +1,38 @@
+//
+//  BEAccessibilityConstants.h
+//
+//  Copyright © 2024 Apple Inc. All rights reserved.
+//
+
+#import <BrowserEngineKit/BEMacros.h>
+
+#if BROWSERENGINEKIT_HAS_UIKIT
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Used when the element is an item in a menu.
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitMenuItem NS_SWIFT_NAME(BEAccessibilityTraits.menuItem) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+// Used when the element should be treated as a button that opens a pop-up.
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitPopUpButton NS_SWIFT_NAME(BEAccessibilityTraits.popUpButton) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+// Used when the element should be treated as a radio button.
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitRadioButton NS_SWIFT_NAME(BEAccessibilityTraits.radioButton) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+// Used when the element should be treated as read-only.
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitReadOnly NS_SWIFT_NAME(BEAccessibilityTraits.readOnly) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+// Used when the element should be treated as visited (e.g. for a link in a webpage).
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitVisited NS_SWIFT_NAME(BEAccessibilityTraits.visited) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+#ifdef __swift__
+// This struct is not available in Objective-C. Its only purpose is to create a namespace for accessibility symbols in Swift.
+typedef struct BEAccessibilityTraits { void *_reserved; } BEAccessibilityTraits;
+#endif
+
+NS_ASSUME_NONNULL_END
+
+#endif // BROWSERENGINEKIT_HAS_UIKIT
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h	2024-04-06 20:34:40
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BECapability.h	2024-05-30 05:25:39
@@ -29,7 +29,7 @@
 @end
 
 
-/// An object that represents a media playback envirnment
+/// An object that represents a media playback environment
 NS_REFINED_FOR_SWIFT
 API_AVAILABLE(ios(17.4))
 API_UNAVAILABLE(macos, watchos, tvos, visionos)
@@ -118,6 +118,26 @@
 @end
 
 NS_REFINED_FOR_SWIFT
+API_AVAILABLE(ios(17.6))
+API_UNAVAILABLE(macos, watchos, tvos, visionos)
+BROWSERENGINE_EXPORT
+@interface BEWebContentProcess (CapabilityInvalidationHandler)
+
+/// Grants the specified capability to the process with invalidation handler.
+///
+/// This method grants the specified capability to the process or returns nil and an error if it can not be granted.
+///
+/// - Parameters:
+///   - capability: The capability to be granted
+///   - error: The error out param populated if the capability cannot be granted.
+///   - invalidationHandler: The invalidation handler
+///
+///  - Returns: an invalidatable grant object that represents the granted capability.
+-(nullable id<BEProcessCapabilityGrant>)grantCapability:(BEProcessCapability*)capability error:(NSError**)error invalidationHandler:(void (^)(void))invalidationHandler;
+
+@end
+
+NS_REFINED_FOR_SWIFT
 API_AVAILABLE(macos(14.3), ios(17.4))
 API_UNAVAILABLE(watchos, tvos, visionos)
 BROWSERENGINE_EXPORT
@@ -137,6 +157,27 @@
 @end
 
 NS_REFINED_FOR_SWIFT
+API_AVAILABLE(ios(17.6))
+API_UNAVAILABLE(macos, watchos, tvos, visionos)
+BROWSERENGINE_EXPORT
+@interface BERenderingProcess (CapabilityInvalidationHandler)
+
+/// Grants the specified capability to the process with invalidation handler.
+///
+/// This method grants the specified capability to the process or returns nil and an error if it can not be granted.
+///
+/// - Parameters:
+///   - capability: The capability to be granted
+///   - error: The error out param populated if the capability cannot be granted.
+///   - invalidationHandler: The invalidation handler
+///
+///  - Returns: an invalidatable grant object that represents the granted capability.
+-(nullable id<BEProcessCapabilityGrant>)grantCapability:(BEProcessCapability*)capability error:(NSError**)error invalidationHandler:(void (^)(void))invalidationHandler;
+
+@end
+
+
+NS_REFINED_FOR_SWIFT
 API_AVAILABLE(macos(14.3), ios(17.4))
 API_UNAVAILABLE(watchos, tvos, visionos)
 BROWSERENGINE_EXPORT
@@ -156,5 +197,24 @@
 
 @end
 
+NS_REFINED_FOR_SWIFT
+API_AVAILABLE(ios(17.6))
+API_UNAVAILABLE(macos, watchos, tvos, visionos)
+BROWSERENGINE_EXPORT
+@interface BENetworkingProcess (CapabilityInvalidationHandler)
+
+/// Grants the specified capability to the process with invalidation handler.
+///
+/// This method grants the specified capability to the process or returns nil and an error if it can not be granted.
+///
+/// - Parameters:
+///   - capability: The capability to be granted
+///   - error: The error out param populated if the capability cannot be granted.
+///   - invalidationHandler: The invalidation handler
+///
+///  - Returns: an invalidatable grant object that represents the granted capability.
+-(nullable id<BEProcessCapabilityGrant>)grantCapability:(BEProcessCapability*)capability error:(NSError**)error invalidationHandler:(void (^)(void))invalidationHandler;
+
+@end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEKeyEntry.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEKeyEntry.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEKeyEntry.h	2024-04-17 08:04:18
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEKeyEntry.h	2024-05-30 11:42:03
@@ -40,7 +40,7 @@
 @property (nonatomic, readonly, getter=isKeyRepeating) BOOL keyRepeating;
 
 /**
- * Time at which the key event occured.
+ * Time at which the key event occurred.
  */
 @property (nonatomic, readonly) NSTimeInterval timestamp;
 
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BELayerHierarchy.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BELayerHierarchy.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BELayerHierarchy.h	2024-04-17 08:04:19
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BELayerHierarchy.h	2024-05-30 11:42:05
@@ -8,11 +8,11 @@
 #import <BrowserEngineKit/BELayerHierarchyHandle.h>
 #import <BrowserEngineKit/BEMacros.h>
 #import <Foundation/Foundation.h>
-#import <QuartzCore/QuartzCore.h>
 
 
 NS_ASSUME_NONNULL_BEGIN
 
+@class CALayer;
 
 API_AVAILABLE(ios(17.4))
 API_UNAVAILABLE(macos, watchos, tvos, visionos)
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEMacros.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEMacros.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEMacros.h	2024-04-17 08:04:18
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEMacros.h	2024-05-30 11:42:04
@@ -6,5 +6,6 @@
 
 #define BROWSERENGINEKIT_HAS_UIINTERACTION __has_include(<UIKit/UIInteraction.h>)
 #define BROWSERENGINEKIT_HAS_UIVIEW __has_include(<UIKit/UIView.h>)
+#define BROWSERENGINEKIT_HAS_UIKIT __has_include(<UIKit/UIKit.h>)
 
 #define BROWSERENGINEKIT_HAS_LIBXPC TARGET_OS_IOS && !TARGET_OS_VISION
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BETextInput.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BETextInput.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BETextInput.h	2024-04-17 07:26:21
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BETextInput.h	2024-05-30 09:39:12
@@ -223,7 +223,7 @@
  *  word backward = option + delete
  *  word forward = option + delete-forward
  *  line end = cmd + delete
- *  line start = comd + delete-forward
+ *  line start = cmd + delete-forward
  *  paragraph  end = ctrl + K
  *  paragraph start = ctrl + fn + K
  *
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BrowserEngineKit.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BrowserEngineKit.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BrowserEngineKit.h	2024-04-17 08:04:18
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BrowserEngineKit.h	2024-05-30 11:42:04
@@ -39,3 +39,5 @@
 #import <BrowserEngineKit/BECapability.h>
 
 #import <BrowserEngineKit/BEWebAppManifest.h>
+#import <BrowserEngineKit/BEAccessibility.h>
+#import <BrowserEngineKit/BEAccessibilityConstants.h>
Clone this wiki locally