void WebEditorClient::requestCheckingOfString(WTF::PassRefPtr<TextCheckingRequest> prpRequest) { RefPtr<TextCheckingRequest> request = prpRequest; uint64_t requestID = generateTextCheckingRequestID(); m_page->addTextCheckingRequest(requestID, request); m_page->send(Messages::WebPageProxy::RequestCheckingOfString(requestID, request->data())); }
void WebEditorClient::requestCheckingOfString(WTF::PassRefPtr<TextCheckingRequest> prpRequest, const WebCore::VisibleSelection& currentSelection) { RefPtr<TextCheckingRequest> request = prpRequest; uint64_t requestID = generateTextCheckingRequestID(); m_page->addTextCheckingRequest(requestID, request); m_page->send(Messages::WebPageProxy::RequestCheckingOfString(requestID, request->data(), insertionPointFromCurrentSelection(currentSelection))); }