browserui/browser/BrowserAppSrc/BrowserContentView.cpp
changeset 10 4530440261a8
parent 5 e45c3f40ea5f
child 11 16a119033e3e
equal deleted inserted replaced
5:e45c3f40ea5f 10:4530440261a8
   272             HandleSubscribeToL(cmd);
   272             HandleSubscribeToL(cmd);
   273             return;
   273             return;
   274         }
   274         }
   275 #endif  // __RSS_FEEDS
   275 #endif  // __RSS_FEEDS
   276 
   276 
       
   277     if ( ( aCommand != EWmlCmdZoomSliderShow ) && ZoomSliderVisible() )
       
   278         {
       
   279         MakeZoomSliderVisibleL( EFalse );
       
   280         }
   277     switch ( aCommand )
   281     switch ( aCommand )
   278         {
   282         {
   279         case EWmlCmdFavourites:
   283         case EWmlCmdFavourites:
   280             {
   284             {
   281             ApiProvider().SetViewToBeActivatedIfNeededL(
   285             ApiProvider().SetViewToBeActivatedIfNeededL(
   895                                                      ( aCommand == EAknSoftkeyCancel ) ) )
   899                                                      ( aCommand == EAknSoftkeyCancel ) ) )
   896         {
   900         {
   897         EnableFullScreenModeL( ETrue );
   901         EnableFullScreenModeL( ETrue );
   898         iWasContentFullScreenMode = EFalse;
   902         iWasContentFullScreenMode = EFalse;
   899         }
   903         }
   900 
       
   901     // Any other commands must cause the zoom slider to be hidden (if it is
       
   902     // currently visible).
       
   903    switch ( aCommand )
       
   904         {
       
   905         // case EWmlCmdZoomMode:
       
   906         case EWmlCmdZoomSliderShow:
       
   907             {
       
   908             // Do nothing, we want to display zoom indicator
       
   909             break;
       
   910             }
       
   911         default:
       
   912             {
       
   913             // If any other command and zoom indicator is displayed, close it
       
   914             if ( ZoomSliderVisible() )
       
   915                 {
       
   916                 MakeZoomSliderVisibleL( EFalse );
       
   917                 }
       
   918             break;
       
   919             }
       
   920         }   // end of switch
       
   921     }
   904     }
   922 
   905 
   923 // -----------------------------------------------------------------------------
   906 // -----------------------------------------------------------------------------
   924 // CBrowserContentView::ViewHistoryL
   907 // CBrowserContentView::ViewHistoryL
   925 // -----------------------------------------------------------------------------
   908 // -----------------------------------------------------------------------------
  1221         }
  1204         }
  1222     else
  1205     else
  1223         {
  1206         {
  1224         TBrCtlDefs::TBrCtlElementType elementtype =
  1207         TBrCtlDefs::TBrCtlElementType elementtype =
  1225             ApiProvider().BrCtlInterface().FocusedElementType();
  1208             ApiProvider().BrCtlInterface().FocusedElementType();
  1226         if( (elementtype == TBrCtlDefs::EElementActivatedInputBox ) ||
  1209         if( elementtype == TBrCtlDefs::EElementActivatedObjectBox )
  1227             (elementtype == TBrCtlDefs::EElementActivatedObjectBox ) )
       
  1228             {
  1210             {
  1229             if ( !iContentFullScreenMode )
  1211             if ( !iContentFullScreenMode )
  1230                 {
  1212                 {
  1231                 result = R_INPUT_ELEMENT_BUTTONS;
  1213                 result = R_INPUT_ELEMENT_BUTTONS;
  1232                 }
  1214                 }
  2751     {
  2733     {
  2752     if( iContainer )
  2734     if( iContainer )
  2753         {
  2735         {
  2754         iContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
  2736         iContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
  2755         UpdateFullScreenL();
  2737         UpdateFullScreenL();
       
  2738         if(KeymapIsUp())
       
  2739             {
       
  2740             RedrawKeymap();
       
  2741             }
  2756         }
  2742         }
  2757     }
  2743     }
  2758 
  2744 
  2759 // ---------------------------------------------------------------------------
  2745 // ---------------------------------------------------------------------------
  2760 // CBrowserContentView::SetZoomModeL
  2746 // CBrowserContentView::SetZoomModeL
  3122 //
  3108 //
  3123 void CBrowserContentView::HandlePluginFullScreen(TBool aFullScreen)
  3109 void CBrowserContentView::HandlePluginFullScreen(TBool aFullScreen)
  3124 {
  3110 {
  3125   iIsPluginFullScreenMode = aFullScreen;
  3111   iIsPluginFullScreenMode = aFullScreen;
  3126   if (aFullScreen) {
  3112   if (aFullScreen) {
  3127     iOrientation = AppUi()->Orientation();
  3113   	if (AppUi()->Orientation() != CAknAppUiBase::EAppUiOrientationLandscape) {
  3128     TRAP_IGNORE( AppUi()->SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape));
  3114       iOrientation = AppUi()->Orientation();
       
  3115       TRAP_IGNORE(AppUi()->SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape));
       
  3116     }
  3129     if (iPenEnabled) {
  3117     if (iPenEnabled) {
  3130       Toolbar()->SetToolbarVisibility( EFalse, EFalse );
  3118       Toolbar()->SetToolbarVisibility( EFalse, EFalse );
  3131     }
  3119     }
  3132     iContentFullScreenMode = ETrue;
  3120     iContentFullScreenMode = ETrue;
  3133     UpdateFullScreenL();
  3121     UpdateFullScreenL();