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

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

Issue 949333002: Revert of Implement NativeViewAccessibilityWin using AXPlatformNodeWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/platform/ax_platform_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node.h
diff --git a/ui/accessibility/platform/ax_platform_node.h b/ui/accessibility/platform/ax_platform_node.h
index 8fa4286afaab26ff157a6e89e3eeb6bc3c12ada2..10ecba2064d0d76b9243d7a590ea98dbc969411b 100644
--- a/ui/accessibility/platform/ax_platform_node.h
+++ b/ui/accessibility/platform/ax_platform_node.h
@@ -5,7 +5,6 @@
#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
-#include "ui/accessibility/ax_enums.h"
#include "ui/accessibility/ax_export.h"
#include "ui/gfx/native_widget_types.h"
@@ -13,37 +12,16 @@
class AXPlatformNodeDelegate;
-// AXPlatformNode is the abstract base class for an implementation of
-// native accessibility APIs on supported platforms (e.g. Windows, Mac OS X).
-// An object that wants to be accessible can derive from AXPlatformNodeDelegate
-// and then call AXPlatformNode::Create. The delegate implementation should
-// own the AXPlatformNode instance (or otherwise manage its lifecycle).
class AX_EXPORT AXPlatformNode {
public:
- // Create an appropriate platform-specific instance. The delegate owns the
- // AXPlatformNode instance (or manages its lifecycle in some other way).
+ // Create a platform appropriate instance.
static AXPlatformNode* Create(AXPlatformNodeDelegate* delegate);
-
- // Cast a gfx::NativeViewAccessible to an AXPlatformNode if it is one,
- // or return NULL if it's not an instance of this class.
- static AXPlatformNode* FromNativeViewAccessible(
- gfx::NativeViewAccessible accessible);
// Call Destroy rather than deleting this, because the subclass may
// use reference counting.
virtual void Destroy() = 0;
- // Get the platform-specific accessible object type for this instance.
- // On some platforms this is just a type cast, on others it may be a
- // wrapper object or handle.
virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0;
-
- // Fire a platform-specific notification that an event has occurred on
- // this object.
- virtual void NotifyAccessibilityEvent(ui::AXEvent event_type) = 0;
-
- // Return this object's delegate.
- virtual AXPlatformNodeDelegate* GetDelegate() const = 0;
protected:
AXPlatformNode();
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/platform/ax_platform_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698