#include "fxjs/global_timer.h"
#include <map>
#include "core/fxcrt/cfx_timer.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/containers/contains.h"
#include "fxjs/cjs_app.h"
namespace {
TimerMap;
TimerMap* g_global_timer_map = …;
}
void GlobalTimer::InitializeGlobals() { … }
void GlobalTimer::DestroyGlobals() { … }
GlobalTimer::GlobalTimer(CJS_App* pObj,
CJS_Runtime* pRuntime,
Type nType,
const WideString& script,
uint32_t dwElapse,
uint32_t dwTimeOut)
: … { … }
GlobalTimer::~GlobalTimer() { … }
void GlobalTimer::Trigger(int32_t nTimerID) { … }
void GlobalTimer::Cancel(int32_t nTimerID) { … }
bool GlobalTimer::HasValidID() const { … }