File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,28 @@ declare_class!(
347
347
. flatten( )
348
348
}
349
349
350
+ #[ method_id( accessibilityWindow) ]
351
+ fn window( & self ) -> Option <Id <AnyObject >> {
352
+ self . resolve_with_context( |_, context| {
353
+ context
354
+ . view
355
+ . load( )
356
+ . and_then( |view| unsafe { NSAccessibility :: accessibilityParent( & * view) } )
357
+ } )
358
+ . flatten( )
359
+ }
360
+
361
+ #[ method_id( accessibilityTopLevelUIElement) ]
362
+ fn top_level( & self ) -> Option <Id <AnyObject >> {
363
+ self . resolve_with_context( |_, context| {
364
+ context
365
+ . view
366
+ . load( )
367
+ . and_then( |view| unsafe { NSAccessibility :: accessibilityParent( & * view) } )
368
+ } )
369
+ . flatten( )
370
+ }
371
+
350
372
#[ method_id( accessibilityChildren) ]
351
373
fn children( & self ) -> Option <Id <NSArray <PlatformNode >>> {
352
374
self . children_internal( )
@@ -784,6 +806,8 @@ declare_class!(
784
806
|| selector == sel!( accessibilityChildrenInNavigationOrder)
785
807
|| selector == sel!( accessibilityFrame)
786
808
|| selector == sel!( accessibilityRole)
809
+ || selector == sel!( accessibilityWindow)
810
+ || selector == sel!( accessibilityTopLevelUIElement)
787
811
|| selector == sel!( accessibilityRoleDescription)
788
812
|| selector == sel!( accessibilityIdentifier)
789
813
|| selector == sel!( accessibilityTitle)
You can’t perform that action at this time.
0 commit comments