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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 1705853002: NOT FOR REVIEW. ax tree focus with debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash Created 4 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
Index: third_party/WebKit/Source/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index 1f4822f212e6b2747fe02adbdd2fc9fcddff6a72..acd1576d8da4c5d5e1cc6138eae0e1117bb5eced 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -266,6 +266,13 @@ WebAXObject WebDocument::accessibilityObjectFromID(int axID) const
return cache ? WebAXObject(cache->objectFromAXID(axID)) : WebAXObject();
}
+WebAXObject WebDocument::focusedAccessibilityObject() const
+{
+ const Document* document = constUnwrap<Document>();
+ AXObjectCacheImpl* cache = toAXObjectCacheImpl(document->axObjectCache());
+ return cache ? WebAXObject(cache->focusedObject()) : WebAXObject();
+}
+
WebVector<WebDraggableRegion> WebDocument::draggableRegions() const
{
WebVector<WebDraggableRegion> draggableRegions;

Powered by Google App Engine
This is Rietveld 408576698