Exemple #1
0
void QtWebPageLoadClient::didSameDocumentNavigationForFrame(WKPageRef page, WKFrameRef frame, WKSameDocumentNavigationType type, WKTypeRef userData, const void* clientInfo)
{
    WebFrameProxy* wkframe = toImpl(frame);
    QString urlStr(wkframe->url());
    QUrl qUrl = urlStr;
    toQtWebPageLoadClient(clientInfo)->didSameDocumentNavigationForFrame(qUrl);
}
Exemple #2
0
void QtWebPageLoadClient::didCommitLoadForFrame(WKPageRef, WKFrameRef frame, WKTypeRef, const void* clientInfo)
{
    if (!WKFrameIsMainFrame(frame))
        return;
    WebFrameProxy* wkframe = toImpl(frame);
    QString urlStr(wkframe->url());
    QUrl qUrl = urlStr;
    toQtWebPageLoadClient(clientInfo)->didCommitLoadForFrame(qUrl);
}
Exemple #3
0
void qt_wk_didCommitLoadForFrame(WKPageRef page, WKFrameRef frame, const void* clientInfo)
{
    if (!WKFrameIsMainFrame(frame))
        return;
    WebFrameProxy* wkframe = toWK(frame);
    QString urlStr(wkframe->url());
    QUrl qUrl = urlStr;
    emit toQWKPage(clientInfo)->urlChanged(qUrl);
    QWKPagePrivate::get(toQWKPage(clientInfo))->updateNavigationActions();
}
Exemple #4
0
WKURLRef WKFrameGetURL(WKFrameRef frameRef)
{
    WebFrameProxy* frame = toWK(frameRef);
    return toURLRef(frame->url().impl());
}