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

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

Issue 1589623002: Keep track of accessibility focus across windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 11 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 b44a752136713844e6f9bbc4e7ed7e9af57b741c..36ed942ab6a42a1e81c5d755db38aaa0e6153517 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