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

Unified Diff: third_party/WebKit/Source/core/exported/WebViewImpl.cpp

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Address Rob's comments Created 3 years, 4 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/exported/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/core/exported/WebViewImpl.cpp b/third_party/WebKit/Source/core/exported/WebViewImpl.cpp
index 49cf097e82de8dc61b49e6759ecfd52eb8008b1a..d91fe65f33cb872fa5aeb755d65c9727adfcdaf7 100644
--- a/third_party/WebKit/Source/core/exported/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/core/exported/WebViewImpl.cpp
@@ -2102,6 +2102,22 @@ bool WebViewImpl::HasVerticalScrollbar() {
->VerticalScrollbar();
}
+// WebFrame* WebViewImpl::HitTestFrameAt(const WebFloatPoint& point) {
+// if (!MainFrameImpl())
+// return nullptr;
+//
+// HitTestResult hit_test_result =
+// MainFrameImpl()->GetFrame()->GetEventHandler().HitTestResultAtPoint(
+// LayoutPoint((FloatPoint)point));
+// Frame* target_frame = nullptr;
+// Node* target_node = hit_test_result.InnerNode();
+// if (target_node->IsFrameOwnerElement())
+// target_frame = ToHTMLFrameOwnerElement(target_node)->ContentFrame();
+// else
+// target_frame = target_node->GetDocument().GetFrame();
+// return WebFrame::FromFrame(target_frame);
+//}
+
WebInputEventResult WebViewImpl::HandleInputEvent(
const WebCoalescedInputEvent& coalesced_event) {
const WebInputEvent& input_event = coalesced_event.Event();
« no previous file with comments | « third_party/WebKit/Source/core/exported/WebViewImpl.h ('k') | third_party/WebKit/Source/core/frame/WebViewFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698