[iOS] Callout menu overlaps in-page controls when editing a comment in github.com...
[WebKit-https.git] / Source / WebKit / UIProcess / ios / WebPageProxyIOS.mm
index ff74424..2d80f80 100644 (file)
@@ -29,6 +29,7 @@
 #if PLATFORM(IOS_FAMILY)
 
 #import "APIUIClient.h"
+#import "Connection.h"
 #import "DataReference.h"
 #import "EditingRange.h"
 #import "GlobalFindInPageState.h"
@@ -1112,6 +1113,16 @@ void WebPageProxy::hardwareKeyboardAvailabilityChanged()
     m_process->send(Messages::WebPage::HardwareKeyboardAvailabilityChanged(), m_pageID);
 }
 
+void WebPageProxy::requestEvasionRectsAboveSelection(CompletionHandler<void(const Vector<WebCore::FloatRect>&)>&& callback)
+{
+    if (!isValid()) {
+        callback({ });
+        return;
+    }
+
+    m_process->connection()->sendWithAsyncReply(Messages::WebPage::RequestEvasionRectsAboveSelection(), WTFMove(callback), m_pageID);
+}
+
 #if ENABLE(DATA_INTERACTION)
 
 void WebPageProxy::didHandleDragStartRequest(bool started)