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

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

Issue 2763803002: BrowserAccessibility should own a AXPlatformNode. (Closed)
Patch Set: Windows Only 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 74990dba8d900d2cc0603693d1b96fd469aa028a..4e0d43ccf8a903a713db70a91cb31cfd7d44c40c 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.h"
#include "ui/accessibility/platform/ax_platform_node_delegate.h"
// Set PLATFORM_HAS_NATIVE_ACCESSIBILITY_IMPL if this platform has
@@ -393,6 +394,13 @@ class CONTENT_EXPORT BrowserAccessibility : public ui::AXPlatformNodeDelegate {
// A unique ID, since node IDs are frame-local.
int32_t unique_id_;
+ // The platform-specific object that implements the accessibility APIs for
+ // this node. Currently some of the platform-specific code is implemented by
+ // subclasses of BrowserAccessibility and some by |platform_node_|, but
+ // eventually we want all of that code to be in AXPlatformNode. See
+ // http://crbug.com/703369
+ ui::AXPlatformNode* platform_node_;
+
private:
// |GetInnerText| recursively includes all the text from descendants such as
// text found in any embedded object. In contrast, |GetText| might include a
« 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