void DocumentLoader::removeSubresourceLoader(ResourceLoader* loader) { m_subresourceLoaders.remove(loader); updateLoading(); if (Frame* frame = m_frame) frame->loader()->checkLoadComplete(); }
void DocumentLoader::subresourceLoaderFinishedLoadingOnePart(ResourceLoader* loader) { m_multipartSubresourceLoaders.add(loader); m_subresourceLoaders.remove(loader); updateLoading(); if (Frame* frame = m_frame) frame->loader()->checkLoadComplete(); }
/* 全PSの生成 */ static void LoadAllPS( const ShaderScripts& shaderScripts, nlEngineContext& cxt ) { const ShaderScriptGroup& psScripts = shaderScripts.psScripts; const unsigned int numScript = psScripts.numScript; for( int i=0;i<numScript;++i) { createPS( i, shaderScripts, cxt ); updateLoading(); } }
void DocumentLoader::setPrimaryLoadComplete(bool flag) { m_primaryLoadComplete = flag; if (flag) { if (m_mainResourceLoader) { m_mainResourceData = m_mainResourceLoader->resourceData(); m_mainResourceLoader = 0; } if (this == frameLoader()->activeDocumentLoader()) updateLoading(); } }
void DocumentLoader::setPrimaryLoadComplete(bool flag) { m_primaryLoadComplete = flag; if (flag) { if (m_mainResourceLoader) { m_mainResourceData = m_mainResourceLoader->resourceData(); #if ENABLE(OFFLINE_WEB_APPLICATIONS) m_mainResourceApplicationCache = m_mainResourceLoader->applicationCache(); #endif m_mainResourceLoader = 0; } updateLoading(); } }
bool DeclarativeWebContainer::activatePage(int tabId, bool force, int parentId) { if (!m_model) { return false; } m_webPages->initialize(this, m_webPageComponent.data()); if ((m_model->loaded() || force) && tabId > 0 && m_webPages->initialized()) { WebPageActivationData activationData = m_webPages->page(tabId, parentId); setWebPage(activationData.webPage); // Reset always height so that orentation change is taken into account. m_webPage->forceChrome(false); m_webPage->setChrome(true); connect(m_webPage, SIGNAL(imeNotification(int,bool,int,int,QString)), this, SLOT(imeNotificationChanged(int,bool,int,int,QString)), Qt::UniqueConnection); connect(m_webPage, SIGNAL(windowCloseRequested()), this, SLOT(closeWindow()), Qt::UniqueConnection); connect(m_webPage, SIGNAL(urlChanged()), this, SLOT(onPageUrlChanged()), Qt::UniqueConnection); connect(m_webPage, SIGNAL(loadingChanged()), this, SLOT(updateLoading()), Qt::UniqueConnection); connect(m_webPage, SIGNAL(loadProgressChanged()), this, SLOT(updateLoadProgress()), Qt::UniqueConnection); connect(m_webPage, SIGNAL(titleChanged()), this, SLOT(onPageTitleChanged()), Qt::UniqueConnection); connect(m_webPage, SIGNAL(domContentLoadedChanged()), this, SLOT(sendVkbOpenCompositionMetrics()), Qt::UniqueConnection); connect(m_webPage, SIGNAL(backgroundChanged()), this, SIGNAL(backgroundChanged()), Qt::UniqueConnection); return activationData.activated; }
void DocumentLoader::removePlugInStreamLoader(ResourceLoader* loader) { m_plugInStreamLoaders.remove(loader); updateLoading(); }