⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frameloaderclientwx.cpp

📁 linux下开源浏览器WebKit的源码,市面上的很多商用浏览器都是移植自WebKit
💻 CPP
📖 第 1 页 / 共 2 页
字号:
void FrameLoaderClientWx::restoreViewState(){    notImplemented();}        void FrameLoaderClientWx::restoreScrollPositionAndViewState(){    notImplemented();}void FrameLoaderClientWx::provisionalLoadStarted(){    notImplemented();}bool FrameLoaderClientWx::shouldTreatURLAsSameAsCurrent(const KURL&) const{    notImplemented();    return false;}void FrameLoaderClientWx::addHistoryItemForFragmentScroll(){    notImplemented();}void FrameLoaderClientWx::didFinishLoad(){    notImplemented();}void FrameLoaderClientWx::prepareForDataSourceReplacement(){    if (m_frame && m_frame->loader())        m_frame->loader()->detachChildren();}void FrameLoaderClientWx::setTitle(const String& title, const KURL&){    notImplemented();}String FrameLoaderClientWx::userAgent(const KURL&){    // FIXME: Use the new APIs introduced by the GTK port to fill in these values.    return String("Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3");}void FrameLoaderClientWx::dispatchDidReceiveIcon(){    notImplemented();}void FrameLoaderClientWx::frameLoaderDestroyed(){    m_frame = 0;    delete this;}bool FrameLoaderClientWx::canHandleRequest(const WebCore::ResourceRequest&) const{    notImplemented();    return true;}void FrameLoaderClientWx::partClearedInBegin(){    notImplemented();}void FrameLoaderClientWx::updateGlobalHistory(){    notImplemented();}void FrameLoaderClientWx::updateGlobalHistoryRedirectLinks(){    notImplemented();}bool FrameLoaderClientWx::shouldGoToHistoryItem(WebCore::HistoryItem*) const{    notImplemented();    return true;}void FrameLoaderClientWx::saveScrollPositionAndViewStateToItem(WebCore::HistoryItem*){    notImplemented();}bool FrameLoaderClientWx::canCachePage() const{    return false;}void FrameLoaderClientWx::setMainDocumentError(WebCore::DocumentLoader*, const WebCore::ResourceError&){    notImplemented();}void FrameLoaderClientWx::committedLoad(WebCore::DocumentLoader* loader, const char* data, int length){    if (!m_frame)        return;    FrameLoader* fl = loader->frameLoader();    fl->setEncoding(m_response.textEncodingName(), false);    fl->addData(data, length);}WebCore::ResourceError FrameLoaderClientWx::cancelledError(const WebCore::ResourceRequest&){    notImplemented();    return ResourceError();}WebCore::ResourceError FrameLoaderClientWx::blockedError(const ResourceRequest&){    notImplemented();    return ResourceError();}WebCore::ResourceError FrameLoaderClientWx::cannotShowURLError(const WebCore::ResourceRequest&){    notImplemented();    return ResourceError();}WebCore::ResourceError FrameLoaderClientWx::interruptForPolicyChangeError(const WebCore::ResourceRequest&){    notImplemented();    return ResourceError();}WebCore::ResourceError FrameLoaderClientWx::cannotShowMIMETypeError(const WebCore::ResourceResponse&){    notImplemented();    return ResourceError();}WebCore::ResourceError FrameLoaderClientWx::fileDoesNotExistError(const WebCore::ResourceResponse&){    notImplemented();    return ResourceError();}bool FrameLoaderClientWx::shouldFallBack(const WebCore::ResourceError& error){    notImplemented();    return false;}WTF::PassRefPtr<DocumentLoader> FrameLoaderClientWx::createDocumentLoader(const ResourceRequest& request, const SubstituteData& substituteData){    return DocumentLoader::create(request, substituteData);}void FrameLoaderClientWx::download(ResourceHandle*, const ResourceRequest&, const ResourceRequest&, const ResourceResponse&){    notImplemented();}void FrameLoaderClientWx::assignIdentifierToInitialRequest(unsigned long identifier, DocumentLoader*, const ResourceRequest&){    notImplemented();   }void FrameLoaderClientWx::dispatchWillSendRequest(DocumentLoader*, unsigned long, ResourceRequest& request, const ResourceResponse& response){    notImplemented();}bool FrameLoaderClientWx::shouldUseCredentialStorage(DocumentLoader*, unsigned long){    notImplemented();    return false;}void FrameLoaderClientWx::dispatchDidReceiveAuthenticationChallenge(DocumentLoader*, unsigned long, const AuthenticationChallenge&){    notImplemented();}void FrameLoaderClientWx::dispatchDidCancelAuthenticationChallenge(DocumentLoader*, unsigned long, const AuthenticationChallenge&){    notImplemented();}void FrameLoaderClientWx::dispatchDidReceiveResponse(DocumentLoader* loader, unsigned long id, const ResourceResponse& response){    notImplemented();    m_response = response;    m_firstData = true;}void FrameLoaderClientWx::dispatchDidReceiveContentLength(DocumentLoader* loader, unsigned long id, int length){    notImplemented();}void FrameLoaderClientWx::dispatchDidFinishLoading(DocumentLoader*, unsigned long){    notImplemented();}void FrameLoaderClientWx::dispatchDidFailLoading(DocumentLoader*, unsigned long, const ResourceError&){    notImplemented();}bool FrameLoaderClientWx::dispatchDidLoadResourceFromMemoryCache(DocumentLoader*, const ResourceRequest&, const ResourceResponse&, int){    notImplemented();    return false;}void FrameLoaderClientWx::dispatchDidFailProvisionalLoad(const ResourceError&){    notImplemented();}void FrameLoaderClientWx::dispatchDidFailLoad(const ResourceError&){    notImplemented();}Frame* FrameLoaderClientWx::dispatchCreatePage(){    notImplemented();    return false;}void FrameLoaderClientWx::dispatchDecidePolicyForMIMEType(FramePolicyFunction function, const String& mimetype, const ResourceRequest& request){    if (!m_frame)        return;        notImplemented();    (m_frame->loader()->*function)(PolicyUse);}void FrameLoaderClientWx::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>, const String&){    if (!m_frame)        return;    notImplemented();    (m_frame->loader()->*function)(PolicyUse);}void FrameLoaderClientWx::dispatchDecidePolicyForNavigationAction(FramePolicyFunction function, const NavigationAction& action, const ResourceRequest& request, PassRefPtr<FormState>){    if (!m_frame)        return;            if (m_webView) {        wxWebViewBeforeLoadEvent wkEvent(m_webView);        wkEvent.SetNavigationType(wxNavTypeFromWebNavType(action.type()));        wkEvent.SetURL(request.url().string());                m_webView->GetEventHandler()->ProcessEvent(wkEvent);        if (wkEvent.IsCancelled())            (m_frame->loader()->*function)(PolicyIgnore);        else            (m_frame->loader()->*function)(PolicyUse);            }}void FrameLoaderClientWx::dispatchUnableToImplementPolicy(const ResourceError&){    notImplemented();}void FrameLoaderClientWx::startDownload(const ResourceRequest&){    notImplemented();}PassRefPtr<Frame> FrameLoaderClientWx::createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement,                                   const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight){/*    FIXME: Temporarily disabling code for loading subframes. While most     (i)frames load and are destroyed properly, the iframe created by    google.com in its new homepage does not get destroyed when     document()->detach() is called, as other (i)frames do. It is destroyed on     app shutdown, but until that point, this 'in limbo' frame will do things    like steal keyboard focus and crash when clicked on. (On some platforms,    it is actually a visible object, even though it's not in a valid state.)        Since just about every user is probably going to test against Google at     some point, I'm disabling this functionality until I have time to track down    why it is not being destroyed.*//*    wxWindow* parent = m_webView;    WebViewFrameData* data = new WebViewFrameData();    data->name = name;    data->ownerElement = ownerElement;    data->url = url;    data->referrer = referrer;    data->marginWidth = marginWidth;    data->marginHeight = marginHeight;    wxWebView* newWin = new wxWebView(parent, -1, wxDefaultPosition, wxDefaultSize, data);    RefPtr<Frame> childFrame = newWin->m_impl->frame;    // FIXME: All of the below should probably be moved over into WebCore    childFrame->tree()->setName(name);    m_frame->tree()->appendChild(childFrame);    // ### set override encoding if we have one    FrameLoadType loadType = m_frame->loader()->loadType();    FrameLoadType childLoadType = FrameLoadTypeInternal;    childFrame->loader()->load(url, referrer, childLoadType,                            String(), 0, 0);        // The frame's onload handler may have removed it from the document.    if (!childFrame->tree()->parent())        return 0;        delete data;        return childFrame.get();*/    notImplemented();    return 0;}ObjectContentType FrameLoaderClientWx::objectContentType(const KURL& url, const String& mimeType){    notImplemented();    return ObjectContentType();}Widget* FrameLoaderClientWx::createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually){    notImplemented();    return 0;}void FrameLoaderClientWx::redirectDataToPlugin(Widget* pluginWidget){    notImplemented();    return;}ResourceError FrameLoaderClientWx::pluginWillHandleLoadError(const ResourceResponse&){    notImplemented();    return ResourceError();}Widget* FrameLoaderClientWx::createJavaAppletWidget(const IntSize&, HTMLAppletElement*, const KURL& baseURL,                                                    const Vector<String>& paramNames, const Vector<String>& paramValues){    notImplemented();    return 0;}String FrameLoaderClientWx::overrideMediaType() const{    notImplemented();    return String();}void FrameLoaderClientWx::windowObjectCleared(){    notImplemented();}void FrameLoaderClientWx::documentElementAvailable(){}void FrameLoaderClientWx::didPerformFirstNavigation() const{    notImplemented();}void FrameLoaderClientWx::registerForIconNotification(bool listen){    notImplemented();}void FrameLoaderClientWx::savePlatformDataToCachedFrame(CachedFrame*){     notImplemented();}void FrameLoaderClientWx::transitionToCommittedFromCachedFrame(CachedFrame*){     notImplemented();}void FrameLoaderClientWx::transitionToCommittedForNewPage(){     ASSERT(m_frame);    ASSERT(m_webView);        Page* page = m_frame->page();    ASSERT(page);    bool isMainFrame = m_frame == page->mainFrame();    m_frame->setView(0);    FrameView* frameView;    if (isMainFrame)        frameView = new FrameView(m_frame, IntRect(m_webView->GetRect()).size());    else        frameView = new FrameView(m_frame);    ASSERT(frameView);    m_frame->setView(frameView);    frameView->deref(); // FrameViews are created with a ref count of 1. Release this ref since we've assigned it to frame.    frameView->setPlatformWidget(m_webView);    if (m_frame->ownerRenderer())        m_frame->ownerRenderer()->setWidget(frameView);    if (HTMLFrameOwnerElement* owner = m_frame->ownerElement())        m_frame->view()->setScrollbarModes(owner->scrollingMode(), owner->scrollingMode());}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -