equal
deleted
inserted
replaced
1117 void CBrowserContentView::SetFullScreenOffL() |
1117 void CBrowserContentView::SetFullScreenOffL() |
1118 { |
1118 { |
1119 TVwsViewId activeViewId; |
1119 TVwsViewId activeViewId; |
1120 if ( AppUi()->GetActiveViewId( activeViewId ) == KErrNone ) |
1120 if ( AppUi()->GetActiveViewId( activeViewId ) == KErrNone ) |
1121 { |
1121 { |
1122 if ( activeViewId.iViewUid == KUidBrowserContentViewId ) |
1122 Cba()->MakeVisible( ETrue ); |
1123 { |
1123 UpdateCbaL(); |
1124 Cba()->MakeVisible( ETrue ); |
1124 if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
1125 UpdateCbaL(); |
1125 StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL); |
1126 if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
1126 StatusPane()->ApplyCurrentSettingsL(); |
1127 StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL); |
1127 StatusPane()->MakeVisible( ETrue ); |
1128 StatusPane()->ApplyCurrentSettingsL(); |
1128 iContainer->SetRect( ClientRect() ); |
1129 StatusPane()->MakeVisible( ETrue ); |
|
1130 iContainer->SetRect( ClientRect() ); |
|
1131 } |
|
1132 } |
1129 } |
1133 } |
1130 } |
1134 |
1131 |
1135 // ----------------------------------------------------------------------------- |
1132 // ----------------------------------------------------------------------------- |
1136 // CBrowserContentView::SetZoomLevelL |
1133 // CBrowserContentView::SetZoomLevelL |
1159 (TInt)TBrCtlDefs::ECommandIdBase ); |
1156 (TInt)TBrCtlDefs::ECommandIdBase ); |
1160 } |
1157 } |
1161 TRAP_IGNORE( ApiProvider().Display().UpdateSecureIndicatorL( |
1158 TRAP_IGNORE( ApiProvider().Display().UpdateSecureIndicatorL( |
1162 EAknIndicatorStateOff )); |
1159 EAknIndicatorStateOff )); |
1163 iContainer->SetFocus( EFalse ); |
1160 iContainer->SetFocus( EFalse ); |
1164 |
1161 |
|
1162 EnableFullScreenModeL( EFalse); |
|
1163 |
1165 TRAP_IGNORE( ApiProvider().BrCtlInterface().HandleCommandL( |
1164 TRAP_IGNORE( ApiProvider().BrCtlInterface().HandleCommandL( |
1166 (TInt)TBrCtlDefs::ECommandLoseFocus + |
1165 (TInt)TBrCtlDefs::ECommandLoseFocus + |
1167 (TInt)TBrCtlDefs::ECommandIdBase ) ); |
1166 (TInt)TBrCtlDefs::ECommandIdBase ) ); |
1168 ApiProvider().BrCtlInterface().MakeVisible(EFalse); |
1167 ApiProvider().BrCtlInterface().MakeVisible(EFalse); |
1169 } |
1168 } |
2220 } |
2219 } |
2221 else |
2220 else |
2222 { |
2221 { |
2223 iNaviDecorator = iNaviPane->CreateNavigationLabelL(_L("")); |
2222 iNaviDecorator = iNaviPane->CreateNavigationLabelL(_L("")); |
2224 } |
2223 } |
2225 } |
2224 iNaviPane->PushL( *iNaviDecorator ); |
2226 iNaviPane->PushL( *iNaviDecorator ); |
2225 } |
2227 } |
2226 } |
2228 else |
2227 else |
2229 { |
2228 { |
2230 CAknNaviLabel* naviLabel = STATIC_CAST( CAknNaviLabel*, |
2229 CAknNaviLabel* naviLabel = STATIC_CAST( CAknNaviLabel*, |
2231 iNaviDecorator->DecoratedControl()); |
2230 iNaviDecorator->DecoratedControl()); |
3164 // CBrowserContentView::EnableFullScreenModeL |
3163 // CBrowserContentView::EnableFullScreenModeL |
3165 // ----------------------------------------------------------------------------- |
3164 // ----------------------------------------------------------------------------- |
3166 // |
3165 // |
3167 void CBrowserContentView::EnableFullScreenModeL( TBool aEnableFullScreen ) |
3166 void CBrowserContentView::EnableFullScreenModeL( TBool aEnableFullScreen ) |
3168 { |
3167 { |
|
3168 if( iContentFullScreenMode == aEnableFullScreen ) |
|
3169 return; |
|
3170 |
3169 TInt command( KErrNotFound ); |
3171 TInt command( KErrNotFound ); |
3170 if ( aEnableFullScreen ) |
3172 if ( aEnableFullScreen ) |
3171 { |
3173 { |
3172 iContentFullScreenMode = ETrue; |
3174 iContentFullScreenMode = ETrue; |
3173 UpdateFullScreenL(); |
3175 UpdateFullScreenL(); |