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

Unified Diff: ui/accessibility/platform/ax_platform_node_mac.h

Issue 420653003: MacViews: Accessibility bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge accessibility_platform target to accessibility Created 6 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 side-by-side diff with in-line comments
Download patch
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..268f9d145f9bbd6083b74ece38f67a26f2aa8799
--- /dev/null
+++ b/ui/accessibility/platform/ax_platform_node_mac.h
@@ -0,0 +1,48 @@
+// 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_base.h"
+
+@class AXPlatformNodeCocoa;
+
+namespace ui {
+
+class AXPlatformNodeMac : public AXPlatformNodeBase {
+ public:
+ AXPlatformNodeMac();
+
+ // AXPlatformNode.
+ virtual void Destroy() OVERRIDE;
+ virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
+
+ private:
+ virtual ~AXPlatformNodeMac();
+
+ base::scoped_nsobject<AXPlatformNodeCocoa> native_node_;
+
+ DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeMac);
+};
+
+} // namespace ui
+
+@interface AXPlatformNodeCocoa : NSObject {
+ @private
+ ui::AXPlatformNodeBase* node_; // Weak. Retains us.
+}
+
++ (NSString*)nativeRoleFromAXRole:(ui::AXRole)role;
++ (NSString*)nativeSubroleFromAXRole:(ui::AXRole)role;
+
+- (instancetype)initWithNode:(ui::AXPlatformNodeBase*)node;
+- (void)detach;
+
+@property(nonatomic, readonly) NSRect boundsInScreen;
+
+@end
+
+#endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_MAC_H_
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_delegate.h ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698