418 void CCSXHHtmlTopicContainer::HandleBrowserLoadEventL(TBrCtlDefs::TBrCtlLoadEvent aLoadEvent, |
418 void CCSXHHtmlTopicContainer::HandleBrowserLoadEventL(TBrCtlDefs::TBrCtlLoadEvent aLoadEvent, |
419 TUint /*aSize*/, TUint16 /*aTransactionId*/) |
419 TUint /*aSize*/, TUint16 /*aTransactionId*/) |
420 { |
420 { |
421 if(aLoadEvent == TBrCtlDefs::EEventLoadFinished) |
421 if(aLoadEvent == TBrCtlDefs::EEventLoadFinished) |
422 { |
422 { |
423 |
423 if ( IsVisible() ) |
424 HBufC* title = iBrCtrl->PageInfoLC(TBrCtlDefs::EPageInfoTitle); |
424 { |
425 if(!title) |
425 HBufC* title = iBrCtrl->PageInfoLC(TBrCtlDefs::EPageInfoTitle); |
426 { |
426 if(!title) |
427 CleanupStack::PopAndDestroy(title); |
427 { |
428 return; |
428 CleanupStack::PopAndDestroy(title); |
429 } |
429 return; |
430 |
430 } |
431 //Update the title bar |
431 |
432 CEikStatusPane* sp = CCSXHAppUi::GetInstance()->StatusPane(); |
432 //Update the title bar |
433 CAknTitlePane* titlePane = STATIC_CAST(CAknTitlePane*, |
433 CEikStatusPane* sp = CCSXHAppUi::GetInstance()->StatusPane(); |
434 sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle))); |
434 CAknTitlePane* titlePane = STATIC_CAST(CAknTitlePane*, |
435 titlePane->SetTextL(*title); |
435 sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle))); |
436 CleanupStack::PopAndDestroy(title); |
436 titlePane->SetTextL(*title); |
|
437 CleanupStack::PopAndDestroy(title); |
|
438 } |
437 |
439 |
438 //For the context sensitive view, the softkey texts need to be changed. |
440 //For the context sensitive view, the softkey texts need to be changed. |
439 //add label iLoadHtml for ESNN-7N9CLN.If the html is opened by |
441 //add label iLoadHtml for ESNN-7N9CLN.If the html is opened by |
440 //loadHtmlL, the iLoadHtml will be set to ETrue, which |
442 //loadHtmlL, the iLoadHtml will be set to ETrue, which |
441 //can guarantee the RSK keep as "CLOSE" when context is sensitive. |
443 //can guarantee the RSK keep as "CLOSE" when context is sensitive. |