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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.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
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebAXEnums.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698