Exemplo n.º 1
0
void QtWebPageLoadClient::didStartProvisionalLoadForFrame(WKPageRef, WKFrameRef frame, WKTypeRef, const void* clientInfo)
{
    if (!WKFrameIsMainFrame(frame))
        return;
    WebFrameProxy* wkframe = toImpl(frame);
    QString urlStr(wkframe->provisionalURL());
    QUrl qUrl = urlStr;
    toQtWebPageLoadClient(clientInfo)->didStartProvisionalLoadForFrame(qUrl);
}
Exemplo n.º 2
0
WKURLRef WKFrameGetProvisionalURL(WKFrameRef frameRef)
{
    WebFrameProxy* frame = toWK(frameRef);
    return toURLRef(frame->provisionalURL().impl());
}