Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: ui/accessibility/platform/ax_platform_node_mac.h

Issue 2944083004: MacViews a11y: Support the "Show menu" action in Textfield and Combobox. (Closed)
Patch Set: more interesting test Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_ 5 #ifndef UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_
6 #define UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_ 6 #define UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 23 matching lines...) Expand all
34 base::scoped_nsobject<AXPlatformNodeCocoa> native_node_; 34 base::scoped_nsobject<AXPlatformNodeCocoa> native_node_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeMac); 36 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeMac);
37 }; 37 };
38 38
39 } // namespace ui 39 } // namespace ui
40 40
41 AX_EXPORT 41 AX_EXPORT
42 @interface AXPlatformNodeCocoa : NSObject 42 @interface AXPlatformNodeCocoa : NSObject
43 43
44 // Maps AX roles to native roles. Returns NSAccessibilityUnknownRole if not
45 // found.
44 + (NSString*)nativeRoleFromAXRole:(ui::AXRole)role; 46 + (NSString*)nativeRoleFromAXRole:(ui::AXRole)role;
47
48 // Maps AX roles to native subroles. Returns nil if not found.
45 + (NSString*)nativeSubroleFromAXRole:(ui::AXRole)role; 49 + (NSString*)nativeSubroleFromAXRole:(ui::AXRole)role;
50
51 // Maps AX events to native notifications. Returns nil if not found.
46 + (NSString*)nativeNotificationFromAXEvent:(ui::AXEvent)event; 52 + (NSString*)nativeNotificationFromAXEvent:(ui::AXEvent)event;
47 53
48 - (instancetype)initWithNode:(ui::AXPlatformNodeBase*)node; 54 - (instancetype)initWithNode:(ui::AXPlatformNodeBase*)node;
49 - (void)detach; 55 - (void)detach;
50 56
51 @property(nonatomic, readonly) NSRect boundsInScreen; 57 @property(nonatomic, readonly) NSRect boundsInScreen;
52 @property(nonatomic, readonly) ui::AXPlatformNodeBase* node; 58 @property(nonatomic, readonly) ui::AXPlatformNodeBase* node;
53 59
54 @end 60 @end
55 61
56 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_ 62 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698