javauis/eswt_akn/eswtdirectcontent/native/src/swtdccontrol.cpp
branchRCL_3
changeset 25 9ac0a0a7da70
parent 24 0fd27995241b
child 60 6c158198356e
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
   228     }
   228     }
   229     else if ((aType == KEikMessageWindowsFadeChange) &&
   229     else if ((aType == KEikMessageWindowsFadeChange) &&
   230              ((iLastFadeMessage == KEikMessageUnfadeWindows) ||
   230              ((iLastFadeMessage == KEikMessageUnfadeWindows) ||
   231               (iLastFadeMessage == KEikMessageFadeAllWindows)))
   231               (iLastFadeMessage == KEikMessageFadeAllWindows)))
   232     {
   232     {
       
   233 #ifdef SWTDCCONTROL_DSA_ENABLED
   233         TBool isFaded = iLastFadeMessage == KEikMessageFadeAllWindows;
   234         TBool isFaded = iLastFadeMessage == KEikMessageFadeAllWindows;
   234 
   235 
   235         DEBUG_INT("CSwtDCControl::HandleResourceChange(): isFaded=%d", isFaded);
   236         DEBUG_INT("CSwtDCControl::HandleResourceChange(): isFaded=%d", isFaded);
   236 
   237 
   237         // Hide anytime, but show only when visibility conditions are fulfilled
   238         // Hide anytime, but show only when visibility conditions are fulfilled
   241             if (iContent)
   242             if (iContent)
   242             {
   243             {
   243                 iContent->MdcContainerVisibilityChanged(!isFaded);
   244                 iContent->MdcContainerVisibilityChanged(!isFaded);
   244             }
   245             }
   245         }
   246         }
   246 
   247 #endif
   247         iLastFadeMessage = 0;
   248         iLastFadeMessage = 0;
   248     }
   249     }
   249 
   250 
   250     DEBUG("CSwtDCControl::HandleResourceChange()-");
   251     DEBUG("CSwtDCControl::HandleResourceChange()-");
   251 }
   252 }
   420                 control->CoeControl().DrawDeferred();
   421                 control->CoeControl().DrawDeferred();
   421             }
   422             }
   422         }
   423         }
   423     }
   424     }
   424 #else
   425 #else
   425     (void)aFocused; //Supresses compilation warning
   426     DEBUG_INT("CSwtDCControl::HandleAppFocusChangeL(): aFocused=%d", aFocused);
       
   427 
       
   428     // Hide anytime, but show only when visibility conditions are fulfilled
       
   429     if (!aFocused || IsContentVisibilityAllowed())
       
   430     {
       
   431         if (iContent)
       
   432         {
       
   433             iContent->MdcContainerVisibilityChanged(aFocused);
       
   434         }
       
   435     }
   426 #endif
   436 #endif
   427 }
   437 }
   428 
   438 
   429 TInt CSwtDCControl::GetBorderWidth() const
   439 TInt CSwtDCControl::GetBorderWidth() const
   430 {
   440 {
   506 void CSwtDCControl::MdcGetDSAResources(
   516 void CSwtDCControl::MdcGetDSAResources(
   507     MUiEventConsumer& aConsumer,
   517     MUiEventConsumer& aConsumer,
   508     TBool aIsInUiThread)
   518     TBool aIsInUiThread)
   509 {
   519 {
   510     DEBUG_INT("CSwtDCControl::MdcGetDSAResources()+ eswt_thread=%d", aIsInUiThread);
   520     DEBUG_INT("CSwtDCControl::MdcGetDSAResources()+ eswt_thread=%d", aIsInUiThread);
       
   521 
       
   522     // To avoid compilation warnings
       
   523     (void)aIsInUiThread;
   511 
   524 
   512     iDcObserver->InvokeDSAResourcesCallback(*this,
   525     iDcObserver->InvokeDSAResourcesCallback(*this,
   513                                             aConsumer);
   526                                             aConsumer);
   514     DEBUG("CSwtDCControl::MdcGetDSAResources()-");
   527     DEBUG("CSwtDCControl::MdcGetDSAResources()-");
   515 
   528