browserplugins/browseraudiovideoplugin/src/BavpController.cpp
branchRCL_3
changeset 39 08ffbd51e3fd
parent 24 868cceedabd3
child 45 5a044f6358c2
equal deleted inserted replaced
37:25214794fad6 39:08ffbd51e3fd
   445 TRect CBavpController::GetClipRect( TRect aRect )
   445 TRect CBavpController::GetClipRect( TRect aRect )
   446     {
   446     {
   447     TRect clipRect ( aRect );
   447     TRect clipRect ( aRect );
   448     Log( EFalse, _L("GetClipRect") );
   448     Log( EFalse, _L("GetClipRect") );
   449 
   449 
       
   450 #ifndef __PLATFORM_VERSION_32__
       
   451     //For non touch device the Child rect is relative to view port, 
       
   452     //where as for Touch device the child rect is relative to the application view rect (excluding the 
       
   453     //status Pane
       
   454     return aRect; 
       
   455 #else 
   450     AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, iNormalScreenRect );
   456     AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, iNormalScreenRect );
   451 
   457 
   452   // Calculate not to cover the bottom or the top of the rect.
   458   // Calculate not to cover the bottom or the top of the rect.
   453   if ( clipRect.iTl.iX < iNormalScreenRect.iTl.iX )
   459   if ( clipRect.iTl.iX < iNormalScreenRect.iTl.iX )
   454     {
   460     {
   469     {
   475     {
   470     clipRect.iBr.iX = iNormalScreenRect.iBr.iX - KRectPadding;
   476     clipRect.iBr.iX = iNormalScreenRect.iBr.iX - KRectPadding;
   471     }
   477     }
   472 
   478 
   473     return clipRect;
   479     return clipRect;
       
   480 #endif 
   474     }
   481     }
   475 
   482 
   476 // -----------------------------------------------------------------------------
   483 // -----------------------------------------------------------------------------
   477 // CBavpController::CreateVolumeListDlg
   484 // CBavpController::CreateVolumeListDlg
   478 // Create the volume list query dialog
   485 // Create the volume list query dialog