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

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

Issue 2759113004: Make BrowserAccessibility implement AXPlatformNodeDelegete. (Closed)
Patch Set: Rebase, remove one of the GetData() methods, and update the declaration of GetData to be const 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 | « content/browser/accessibility/browser_accessibility.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility.cc
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc
index 0584256c60d97f00532caf206f80cad62a574a72..e48625d5595dc23f03d5d311d0a5b7d93a1c91ff 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -335,14 +335,6 @@ int32_t BrowserAccessibility::GetId() const {
return node_ ? node_->id() : -1;
}
-const ui::AXNodeData& BrowserAccessibility::GetData() const {
- CR_DEFINE_STATIC_LOCAL(ui::AXNodeData, empty_data, ());
- if (node_)
- return node_->data();
- else
- return empty_data;
-}
-
gfx::RectF BrowserAccessibility::GetLocation() const {
return GetData().location;
}
@@ -1223,4 +1215,64 @@ gfx::Rect BrowserAccessibility::RelativeToAbsoluteBounds(
return gfx::ToEnclosingRect(bounds);
}
+// AXPlatformNodeDelegate.
+const ui::AXNodeData& BrowserAccessibility::GetData() const {
+ CR_DEFINE_STATIC_LOCAL(ui::AXNodeData, empty_data, ());
+ if (node_)
+ return node_->data();
+ else
+ return empty_data;
+}
+
+gfx::NativeWindow BrowserAccessibility::GetTopLevelWidget() {
+ NOTREACHED();
+ return nullptr;
+}
+
+gfx::NativeViewAccessible BrowserAccessibility::GetParent() {
+ NOTREACHED();
+ return nullptr;
+}
+
+int BrowserAccessibility::GetChildCount() {
+ NOTREACHED();
+ return -1;
+}
+
+gfx::NativeViewAccessible BrowserAccessibility::ChildAtIndex(int index) {
+ NOTREACHED();
+ return nullptr;
+}
+
+gfx::Vector2d BrowserAccessibility::GetGlobalCoordinateOffset() {
+ NOTREACHED();
+ return gfx::Vector2d();
+}
+
+gfx::NativeViewAccessible BrowserAccessibility::HitTestSync(int x, int y) {
+ NOTREACHED();
+ return nullptr;
+}
+
+gfx::NativeViewAccessible BrowserAccessibility::GetFocus() {
+ NOTREACHED();
+ return nullptr;
+}
+
+gfx::AcceleratedWidget
+BrowserAccessibility::GetTargetForNativeAccessibilityEvent() {
+ NOTREACHED();
+ return gfx::kNullAcceleratedWidget;
+}
+
+bool BrowserAccessibility::AccessibilityPerformAction(
+ const ui::AXActionData& data) {
+ NOTREACHED();
+ return false;
+}
+
+void BrowserAccessibility::DoDefaultAction() {
+ NOTREACHED();
+}
+
} // namespace content
« no previous file with comments | « content/browser/accessibility/browser_accessibility.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698