Flutter Engine
 
Loading...
Searching...
No Matches
AXPlatformNodeCocoa Class Reference

#include <ax_platform_node_mac.h>

Inheritance diagram for AXPlatformNodeCocoa:

Instance Methods

(instancetype) - initWithNode:
 
(void) - detach
 

Class Methods

(NSString *) + nativeRoleFromAXRole:
 
(NSString *) + nativeSubroleFromAXRole:
 
(NSString *) + nativeNotificationFromAXEvent:
 

Properties

NSRect boundsInScreen
 
ui::AXPlatformNodeBasenode
 

Detailed Description

Definition at line 53 of file ax_platform_node_mac.h.

Method Documentation

◆ detach

- (void) detach

Definition at line 359 of file ax_platform_node_mac.mm.

389 {
390 if (!_node)
391 return;
392 _node = nil;
393 NSAccessibilityPostNotification(self, NSAccessibilityUIElementDestroyedNotification);
394}

Referenced by ui::AXPlatformNodeMac::Destroy().

◆ initWithNode:

- (instancetype) initWithNode: (ui::AXPlatformNodeBase*)  node

Definition at line 359 of file ax_platform_node_mac.mm.

383 if ((self = [super init])) {
384 _node = node;
385 }
386 return self;
387}
ui::AXPlatformNodeBase * node

◆ nativeNotificationFromAXEvent:

+ (NSString *) nativeNotificationFromAXEvent: (ax::mojom::Event event

Definition at line 359 of file ax_platform_node_mac.mm.

376 :(ax::mojom::Event)event {
377 static const base::NoDestructor<EventMap> event_map(BuildEventMap());
378 EventMap::const_iterator it = event_map->find(event);
379 return it != event_map->end() ? it->second : nil;
380}

◆ nativeRoleFromAXRole:

+ (NSString *) nativeRoleFromAXRole: (ax::mojom::Role role

Definition at line 359 of file ax_platform_node_mac.mm.

364 :(ax::mojom::Role)role {
365 static const base::NoDestructor<RoleMap> role_map(BuildRoleMap());
366 RoleMap::const_iterator it = role_map->find(role);
367 return it != role_map->end() ? it->second : NSAccessibilityUnknownRole;
368}

◆ nativeSubroleFromAXRole:

+ (NSString *) nativeSubroleFromAXRole: (ax::mojom::Role role

Definition at line 359 of file ax_platform_node_mac.mm.

370 :(ax::mojom::Role)role {
371 static const base::NoDestructor<RoleMap> subrole_map(BuildSubroleMap());
372 RoleMap::const_iterator it = subrole_map->find(role);
373 return it != subrole_map->end() ? it->second : nil;
374}

Property Documentation

◆ boundsInScreen

- (NSRect) boundsInScreen
readnonatomicassign

Definition at line 68 of file ax_platform_node_mac.h.

◆ node

- (AXPlatformNodeBase*) AXPlatformNodeCocoa:
readnonatomicassign

Definition at line 69 of file ax_platform_node_mac.h.


The documentation for this class was generated from the following files: