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

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

Issue 1655153003: Fire an accessible click event when a web node is clicked on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fire_clicked_event
Patch Set: Added test for tap 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/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 314bcaa6d1c0290441f3137f5c37d3356bc3b655..d02caab647e4d0828ea334aeefb030334eee7e14 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -922,6 +922,12 @@ void AXObjectCacheImpl::handleLayoutComplete(LayoutObject* layoutObject)
postNotification(obj, AXLayoutComplete);
}
+void AXObjectCacheImpl::handleClicked(Node* node)
+{
+ if (AXObject* obj = getOrCreate(node))
+ postNotification(obj, AXClicked);
+}
+
void AXObjectCacheImpl::handleAriaExpandedChange(Node* node)
{
if (AXObject* obj = getOrCreate(node))

Powered by Google App Engine
This is Rietveld 408576698