diff options
Diffstat (limited to 'Source/WebKit2/WebProcess/InjectedBundle/API/c')
-rw-r--r-- | Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp | 6 | ||||
-rw-r--r-- | Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp b/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp index fe6d79ed8..24188fff2 100644 --- a/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp +++ b/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp @@ -27,6 +27,7 @@ #include "WKBundleFrame.h" #include "WKBundleFramePrivate.h" +#include "InjectedBundleHitTestResult.h" #include "WKAPICast.h" #include "WKBundleAPICast.h" #include "WKData.h" @@ -280,3 +281,8 @@ bool WKBundleFrameCallShouldCloseOnWebView(WKBundleFrameRef frameRef) return coreFrame->loader()->shouldClose(); } + +WKBundleHitTestResultRef WKBundleFrameCreateHitTestResult(WKBundleFrameRef frameRef, WKPoint point) +{ + return toAPI(toImpl(frameRef)->hitTest(toIntPoint(point)).leakRef()); +} diff --git a/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h b/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h index b4710445f..d2286ff89 100644 --- a/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h +++ b/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h @@ -55,6 +55,8 @@ WK_EXPORT bool WKBundleFrameContainsAnyFormElements(WKBundleFrameRef frame); WK_EXPORT void WKBundleFrameSetTextDirection(WKBundleFrameRef frame, WKStringRef); WK_EXPORT bool WKBundleFrameCallShouldCloseOnWebView(WKBundleFrameRef frame); +WK_EXPORT WKBundleHitTestResultRef WKBundleFrameCreateHitTestResult(WKBundleFrameRef frame, WKPoint point); + #ifdef __cplusplus } #endif |