Skip to content

BrowserEngineKit macOS xcode16.0 b3

Rolf Bjarne Kvinge edited this page Jul 9, 2024 · 1 revision

#BrowserEngineKit.framework

diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h	2024-06-12 22:54:59
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibility.h	2024-06-29 06:16:22
@@ -78,6 +78,42 @@
  */
 @property (nonatomic, assign) BEAccessibilityContainerType browserAccessibilityContainerType BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
 
+/**
+ @abstract Returns an range representing the selected text on the page.
+ default: { NSNotFound, 0 }
+ */
+- (NSRange)browserAccessibilitySelectedTextRange BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ @abstract Set the selected text range.
+ @param range The range to make selected.
+ */
+- (void)browserAccessibilitySetSelectedTextRange:(NSRange)range BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ @abstract Returns the value of this element in the given range.
+ @param range The range of this element's value to return.
+ */
+- (NSString *)browserAccessibilityValueInRange:(NSRange)range BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ @abstract Returns the attributed value of this element in the given range.
+ @param range The range of this element's value to return.
+ */
+- (NSAttributedString *)browserAccessibilityAttributedValueInRange:(NSRange)range BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ @abstract Insert text at the current cursor position.
+ @param text The text to insert.
+ */
+- (void)browserAccessibilityInsertTextAtCursor:(NSString *)text BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ @abstract Delete text at the current cursor position.
+ @param numberOfCharacters Number of characters to delete.
+ */
+- (void)browserAccessibilityDeleteTextAtCursor:(NSUInteger)numberOfCharacters BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h	2024-06-12 22:54:58
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Headers/BEAccessibilityConstants.h	2024-06-29 20:47:53
@@ -14,23 +14,42 @@
 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;
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitMenuItem NS_SWIFT_NAME(BEAccessibility.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;
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitPopUpButton NS_SWIFT_NAME(BEAccessibility.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;
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitRadioButton NS_SWIFT_NAME(BEAccessibility.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;
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitReadOnly NS_SWIFT_NAME(BEAccessibility.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;
+BROWSERENGINE_EXTERN UIAccessibilityTraits BEAccessibilityTraitVisited NS_SWIFT_NAME(BEAccessibility.visited) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
 
+/**
+ Posted when the selection inside an element changes.
+
+ When text inside an editable element changes, or the editing cursor position changes, this notification
+ must be posted alongside, and after, BEAccessibilityValueChangedNotification.
+ */
+BROWSERENGINE_EXTERN UIAccessibilityNotifications BEAccessibilitySelectionChangedNotification NS_SWIFT_NAME(BEAccessibility.selectionChangedNotification) BROWSERENGINE_ACCESSIBILITY_AVAILABILITY;
+
+/**
+ Posted when the value of an element changes. Some examples of when this notification is appropriate:
+    - The value of an input element changes
+    - Text is added or removed from any text control
+    - aria-valuenow or aria-valuetext changes
+
+ Furthermore, when text inside an editable element changes, or the editing cursor position changes, this notification
+ must be posted alongside, and before, BEAccessibilitySelectionChangedNotification.
+ */
+BROWSERENGINE_EXTERN UIAccessibilityNotifications BEAccessibilityValueChangedNotification NS_SWIFT_NAME(BEAccessibility.valueChangedNotification) 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;
+typedef struct BEAccessibility { void *_reserved; } BEAccessibility;
 #endif
 
 NS_ASSUME_NONNULL_END
Clone this wiki locally