void CMemoryMonitor::WaitAndSynchroniseMemoryState() //this will be called after freeing memory { FUNC_LOG; switch (iTrigger) { case EGOomTriggerThresholdCrossed: { //Call memory good if we are good. DoPostponedMemoryGood(); break; } case EGOomTriggerFocusChanged: case EGOomTriggerRequestMemory: { //start timer //cancel timer if end critical allocations request -TODO //end critical allocations when timer expires -TODO if ( iSynchTimer && //exists !iSynchTimer->IsActive() ) // keep it simple { iSynchTimer->Cancel(); iSynchTimer->After(KGoomWaitTimeToSynch); } break; } } ResetTargets(); }
void BNavMenu::AttachedToWindow() { BSlowMenu::AttachedToWindow(); SpringLoadedFolderSetMenuStates(this, fTypesList); // if dragging (fTypesList != NULL) // set the menu items enabled state // relative to the ability to handle an item in the // drag message ResetTargets(); // allow an opportunity to reset the target for each of the items }