summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/WebFindClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/WebFindClient.cpp')
-rw-r--r--Source/WebKit2/UIProcess/WebFindClient.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/WebFindClient.cpp b/Source/WebKit2/UIProcess/WebFindClient.cpp
index c8df91dbd..702d187ca 100644
--- a/Source/WebKit2/UIProcess/WebFindClient.cpp
+++ b/Source/WebKit2/UIProcess/WebFindClient.cpp
@@ -55,5 +55,20 @@ void WebFindClient::didCountStringMatches(WebPageProxy* page, const String& stri
m_client.didCountStringMatches(toAPI(page), toAPI(string.impl()), matchCount, m_client.clientInfo);
}
+void WebFindMatchesClient::didFindStringMatches(WebPageProxy* page, const String& string, ImmutableArray* matches, int firstIndex)
+{
+ if (!m_client.didFindStringMatches)
+ return;
+
+ m_client.didFindStringMatches(toAPI(page), toAPI(string.impl()), toAPI(matches), firstIndex, m_client.clientInfo);
+}
+
+void WebFindMatchesClient::didGetImageForMatchResult(WebPageProxy* page, WebImage* image, uint32_t index)
+{
+ if (!m_client.didGetImageForMatchResult)
+ return;
+ m_client.didGetImageForMatchResult(toAPI(page), toAPI(image), index, m_client.clientInfo);
+}
+
} // namespace WebKit