widgets/widgetlauncher/src/WidgetLauncher.cpp
branchRCL_3
changeset 35 1f3c3f2f5b0a
parent 26 cb62a4f66ebe
child 48 79859ed3eea9
equal deleted inserted replaced
34:220a17280356 35:1f3c3f2f5b0a
    29 #include <apgcli.h>
    29 #include <apgcli.h>
    30 #include <W32STD.H>
    30 #include <W32STD.H>
    31 #include <APGTASK.H>
    31 #include <APGTASK.H>
    32 #include <oommonitorsession.h>
    32 #include <oommonitorsession.h>
    33 #include <e32property.h>
    33 #include <e32property.h>
    34 #ifndef FF_OOM_MONITOR2_COMPONENT 
    34 #ifndef BRDO_OOM_MONITOR2_COMPONENT_FF 
    35 #include <systemwarninglevels.hrh>
    35 #include <systemwarninglevels.hrh>
    36 #endif
    36 #endif
    37 #include "browser_platform_variant.hrh"
    37 #include "browser_platform_variant.hrh"
    38 
    38 
    39 // CONSTANTS
    39 // CONSTANTS
   209              aOperation == WidgetRestart ) //WidgetUI has died -> re-launch
   209              aOperation == WidgetRestart ) //WidgetUI has died -> re-launch
   210             {
   210             {
   211             TInt bytesAvailaible(0);
   211             TInt bytesAvailaible(0);
   212             if (aOperation != WidgetSelect && aOperation != LaunchFullscreen )
   212             if (aOperation != WidgetSelect && aOperation != LaunchFullscreen )
   213                 {
   213                 {
   214 #ifdef FF_OOM_MONITOR2_COMPONENT
   214 #ifdef BRDO_OOM_MONITOR2_COMPONENT_FF
   215                 err = monitorSession.RequestOptionalRam(KMemoryToLaunchWidgetUi, KMemoryToLaunchWidgetUi,KUidWidgetOOMPlugin, bytesAvailaible);
   215                 err = monitorSession.RequestOptionalRam(KMemoryToLaunchWidgetUi, KMemoryToLaunchWidgetUi,KUidWidgetOOMPlugin, bytesAvailaible);
   216 #else
   216 #else
   217                    TMemoryInfoV1Buf info;
   217                    TMemoryInfoV1Buf info;
   218                    UserHal::MemoryInfo(info);
   218                    UserHal::MemoryInfo(info);
   219                    err = info().iFreeRamInBytes > KMemoryToLaunchWidgetUi +  KRAMGOODTHRESHOLD ? KErrNone : KErrNoMemory;
   219                    err = info().iFreeRamInBytes > KMemoryToLaunchWidgetUi +  KRAMGOODTHRESHOLD ? KErrNone : KErrNoMemory;