// --------------------------------------------------------- // CContentWindowContainer::ConstructL(const TRect& aRect) // EPOC two phased constructor // --------------------------------------------------------- // void CContentWindowContainer::ConstructL(CContentWindowView* aView, const TRect& aRect, const TDesC& aMbmFile) { iView = aView; CreateWindowL(); SetRect(aRect); ActivateL(); iCommandBase = TBrCtlDefs::ECommandIdBase; // Initialize member variables iBrCtlCapabilities = TBrCtlDefs::ECapabilityDisplayScrollBar | TBrCtlDefs::ECapabilityLoadHttpFw | TBrCtlDefs::ECapabilityClientResolveEmbeddedURL | TBrCtlDefs::ECapabilityClientNotifyURL; TRect rect(Position(), Size()); iBrCtlInterface = CreateBrowserControlL( this, rect, iBrCtlCapabilities, iCommandBase, NULL, this, NULL, NULL, NULL); iBrCtlInterface->SetBrowserSettingL(TBrCtlDefs::ESettingsAutoLoadImages, 1); iBrCtlInterface->SetBrowserSettingL(TBrCtlDefs::ESettingsEmbedded, 1); // These observers can be added and removed dynamically /* iBrCtlInterface-> */ /* AddLoadEventObserverL(this); */ }
// ---------------------------------------------------- // CRhodesAppView::CreateBasicBrowserControlL() // ---------------------------------------------------- // void CRhodesAppView::CreateBasicBrowserControlL() { if (iBrCtlInterface != NULL) { delete iBrCtlInterface; iBrCtlInterface = NULL; } else { TRect rect(Position(), Size()); iBrCtlInterface = CreateBrowserControlL( this, rect, iBrCtlCapabilities, iCommandBase, /*iAppSoftkeysObserver*/NULL, NULL, iSpecialLoadObserver, NULL, NULL); iBrCtlInterface->ClearCache(); } }