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

Unified Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Created 3 years, 6 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/public/web/WebWidget.h
diff --git a/third_party/WebKit/public/web/WebWidget.h b/third_party/WebKit/public/web/WebWidget.h
index 101367b9cc0afa0fae2a1d2189b1a69153c0492d..147f034417acc50975783e42c8296f08205af723 100644
--- a/third_party/WebKit/public/web/WebWidget.h
+++ b/third_party/WebKit/public/web/WebWidget.h
@@ -34,6 +34,7 @@
#include "public/platform/WebBrowserControlsState.h"
#include "public/platform/WebCanvas.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebFloatSize.h"
#include "public/platform/WebInputEventResult.h"
#include "public/platform/WebMenuSourceType.h"
@@ -42,6 +43,7 @@
#include "public/platform/WebSize.h"
#include "public/platform/WebTextInputInfo.h"
#include "public/web/WebCompositionUnderline.h"
+#include "public/web/WebFrame.h"
#include "public/web/WebRange.h"
#include "public/web/WebTextDirection.h"
@@ -119,6 +121,11 @@ class WebWidget {
// on receiving this message
virtual void ThemeChanged() {}
+ // Finds out the frame that the point is positioned on.
+ virtual WebFrame* HitTestFrameAt(const WebFloatPoint& point) {
bokan 2017/07/18 19:26:35 Would we generalise this a little? Instead of hit
Navid Zolghadr 2017/07/18 19:34:14 I had something like that in mind. But I saw no me
bokan 2017/07/18 19:39:43 Great, thanks! From the WebNode you can get a WebD
+ return nullptr;
+ }
+
// Called to inform the WebWidget of an input event.
virtual WebInputEventResult HandleInputEvent(const WebCoalescedInputEvent&) {
return WebInputEventResult::kNotHandled;
« content/common/input/input_handler.mojom ('K') | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698