Index: ui/accessibility/platform/ax_platform_node_mac.h |
diff --git a/ui/accessibility/platform/ax_platform_node_mac.h b/ui/accessibility/platform/ax_platform_node_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d807e21e3c9d25b8fe7b6cd60a5be872508527fa |
--- /dev/null |
+++ b/ui/accessibility/platform/ax_platform_node_mac.h |
@@ -0,0 +1,47 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_ |
+#define UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_ |
+ |
+#include "base/mac/scoped_nsobject.h" |
+#include "ui/accessibility/platform/ax_platform_node.h" |
+ |
+@class AXPlatformNodeCocoa; |
+ |
+namespace ui { |
+ |
+class AXPlatformNodeMac : public AXPlatformNode { |
+ public: |
+ AXPlatformNodeMac(); |
+ virtual ~AXPlatformNodeMac(); |
+ |
+ // AXPlatformNode. |
+ virtual void Detach() OVERRIDE; |
+ virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
+ |
+ private: |
+ base::scoped_nsobject<AXPlatformNodeCocoa> native_node_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeMac); |
+}; |
+ |
+} // namespace ui |
+ |
+@interface AXPlatformNodeCocoa : NSObject { |
+ @private |
+ ui::AXPlatformNode* node_; // Weak. Retains us. |
+} |
+ |
++ (NSString*)nativeRoleFromAXRole:(ui::AXRole)role; |
++ (NSString*)nativeSubroleFromAXRole:(ui::AXRole)role; |
+ |
+- (instancetype)initWithNode:(ui::AXPlatformNode*)node; |
+- (void)detach; |
+ |
+@property(nonatomic, readonly) NSRect boundsInScreen; |
+ |
+@end |
+ |
+#endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_ |