| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index e84942261f05499a9376018af901cf453eab24a0..89991a9532146f0a9099210c19e33bc19a754c7a 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2175,11 +2175,34 @@ WebInputEventResult WebViewImpl::handleInputEvent(const WebInputEvent& inputEven
|
| LocalFrame* targetLocalFrame = toLocalFrame(targetFrame);
|
| Document* document = targetLocalFrame->document();
|
| if (document) {
|
| + IntPoint docPoint(m_page->deprecatedLocalMainFrame()->view()->rootFrameToContents(pme.position()));
|
| +
|
| AXObjectCache* cache = document->existingAXObjectCache();
|
| - if (cache)
|
| - cache->onTouchAccessibilityHover(pme.position());
|
| + if (cache) {
|
| + switch (inputEvent.type) {
|
| + case WebInputEvent::MouseDown:
|
| + cache->onAccessibilityMouseDown(docPoint);
|
| + break;
|
| + case WebInputEvent::MouseUp:
|
| + cache->onAccessibilityMouseUp(docPoint);
|
| + break;
|
| + case WebInputEvent::MouseMove:
|
| + cache->onAccessibilityMouseMove(docPoint);
|
| + break;
|
| + case WebInputEvent::MouseEnter:
|
| + cache->onAccessibilityMouseEnter(docPoint);
|
| + break;
|
| + case WebInputEvent::MouseLeave:
|
| + cache->onAccessibilityMouseLeave(docPoint);
|
| + break;
|
| + default:
|
| + break;
|
| + }
|
| + }
|
| }
|
| }
|
| +
|
| + return WebInputEventResult::HandledSuppressed;
|
| }
|
|
|
| // Report the event to be NOT processed by WebKit, so that the browser can handle it appropriately.
|
|
|