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

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

Issue 1536493002: Working proof of concept of select to speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drag across multiple objects Created 5 years 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 e997fc4b88f61e7f04516f37bec3f6c4533c09df..0b19edb5c5b5fc2bc727d37f59ad12f4d760ed28 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -1310,11 +1310,39 @@ String AXObjectCacheImpl::computedNameForNode(Node* node)
return obj->computedName();
}
-void AXObjectCacheImpl::onTouchAccessibilityHover(const IntPoint& location)
+void AXObjectCacheImpl::onAccessibilityMouseDown(const IntPoint& location)
{
AXObject* hit = root()->accessibilityHitTest(location);
if (hit)
- postPlatformNotification(hit, AXHover);
+ postPlatformNotification(hit, AXMousePressed);
+}
+
+void AXObjectCacheImpl::onAccessibilityMouseUp(const IntPoint& location)
+{
+ AXObject* hit = root()->accessibilityHitTest(location);
+ if (hit)
+ postPlatformNotification(hit, AXMouseReleased);
+}
+
+void AXObjectCacheImpl::onAccessibilityMouseMove(const IntPoint& location)
+{
+ AXObject* hit = root()->accessibilityHitTest(location);
+ if (hit)
+ postPlatformNotification(hit, AXMouseMoved);
+}
+
+void AXObjectCacheImpl::onAccessibilityMouseEnter(const IntPoint& location)
+{
+ AXObject* hit = root()->accessibilityHitTest(location);
+ if (hit)
+ postPlatformNotification(hit, AXMouseEntered);
+}
+
+void AXObjectCacheImpl::onAccessibilityMouseLeave(const IntPoint& location)
+{
+ AXObject* hit = root()->accessibilityHitTest(location);
+ if (hit)
+ postPlatformNotification(hit, AXMouseExited);
}
void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect& rect)

Powered by Google App Engine
This is Rietveld 408576698