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

Unified Diff: third_party/WebKit/Source/core/events/EventDispatcher.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: 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/core/events/EventDispatcher.cpp
diff --git a/third_party/WebKit/Source/core/events/EventDispatcher.cpp b/third_party/WebKit/Source/core/events/EventDispatcher.cpp
index f6ad638c6b532bcaeeb316a0ee4f10f7288d01d3..94a0a2b35bccd04cde2979de53eb3c65ff7d2ad8 100644
--- a/third_party/WebKit/Source/core/events/EventDispatcher.cpp
+++ b/third_party/WebKit/Source/core/events/EventDispatcher.cpp
@@ -199,6 +199,10 @@ inline void EventDispatcher::dispatchEventPostProcess(void* preDispatchEventHand
m_event->setCurrentTarget(nullptr);
m_event->setEventPhase(0);
+ // Fire an accessibility event indicating a node was clicked on.
+ if (AXObjectCache* cache = m_node->document().existingAXObjectCache())
+ cache->handleClicked(m_node);
Rick Byers 2016/02/02 18:22:57 This is being called for ALL types of events (not
dmazzoni 2016/02/02 18:35:48 Oops, I had a line of code that checked for the ev
Rick Byers 2016/02/02 18:55:37 Ok. Please share the logic with the isTrustedOrCl
+
// Pass the data from the preDispatchEventHandler to the postDispatchEventHandler.
m_node->postDispatchEventHandler(m_event.get(), preDispatchEventHandlerResult);

Powered by Google App Engine
This is Rietveld 408576698