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

Unified Diff: content/browser/accessibility/browser_accessibility.h

Issue 2759113004: Make BrowserAccessibility implement AXPlatformNodeDelegete. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 737f0cccde228b65f596abd42011efb7ae98cb45..cbadc843834ccd209a85d680d47d913ad8e17cd4 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -22,6 +22,7 @@
#include "ui/accessibility/ax_node_data.h"
#include "ui/accessibility/ax_range.h"
#include "ui/accessibility/ax_text_utils.h"
+#include "ui/accessibility/platform/ax_platform_node_delegate.h"
// Set PLATFORM_HAS_NATIVE_ACCESSIBILITY_IMPL if this platform has
// a platform-specific subclass of BrowserAccessibility and
@@ -64,7 +65,7 @@ class BrowserAccessibilityManager;
// for tests.
//
////////////////////////////////////////////////////////////////////////////////
-class CONTENT_EXPORT BrowserAccessibility {
+class CONTENT_EXPORT BrowserAccessibility : public ui::AXPlatformNodeDelegate {
public:
// Creates a platform specific BrowserAccessibility. Ownership passes to the
// caller.
@@ -364,6 +365,19 @@ class CONTENT_EXPORT BrowserAccessibility {
// Gets the text offsets where new lines start.
std::vector<int> GetLineStartOffsets() const;
+ // AXPlatformNodeDelegate.
+ const ui::AXNodeData& GetData() override;
+ gfx::NativeWindow GetTopLevelWidget() override;
+ gfx::NativeViewAccessible GetParent() override;
+ int GetChildCount() override;
+ gfx::NativeViewAccessible ChildAtIndex(int index) override;
+ gfx::Vector2d GetGlobalCoordinateOffset() override;
+ gfx::NativeViewAccessible HitTestSync(int x, int y) override;
+ gfx::NativeViewAccessible GetFocus() override;
+ gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
+ bool AccessibilityPerformAction(const ui::AXActionData& data) override;
+ void DoDefaultAction() override;
+
protected:
using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance;
using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>;
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698