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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 1375703002: Fire accessibility hover events when the touch exploration flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use asserts instead of checks in test Created 5 years, 3 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/modules/accessibility/AXObjectCacheImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
index ff87ae10000912a5afeaad8afb9333527002bdc0..4aafb8ce1120d5f280f2c6befcd5e7f14b50dcda 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -1333,6 +1333,13 @@ String AXObjectCacheImpl::computedNameForNode(Node* node)
return String();
}
+void AXObjectCacheImpl::onTouchAccessibilityHover(const IntPoint& location)
+{
+ AXObject* hit = root()->accessibilityHitTest(location);
+ if (hit)
+ postPlatformNotification(hit, AXHover);
+}
+
void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect& rect)
{
AXObject* obj = getOrCreate(element);

Powered by Google App Engine
This is Rietveld 408576698