summaryrefslogtreecommitdiff
path: root/fxjs/cjs_timerobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_timerobj.h')
-rw-r--r--fxjs/cjs_timerobj.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/fxjs/cjs_timerobj.h b/fxjs/cjs_timerobj.h
index b4938c4ece..edc3def952 100644
--- a/fxjs/cjs_timerobj.h
+++ b/fxjs/cjs_timerobj.h
@@ -11,28 +11,21 @@
class GlobalTimer;
-class TimerObj : public CJS_EmbedObj {
- public:
- explicit TimerObj(CJS_Object* pJSObject);
- ~TimerObj() override;
-
- void SetTimer(GlobalTimer* pTimer);
- int GetTimerID() const { return m_nTimerID; }
-
- private:
- int m_nTimerID; // Weak reference to GlobalTimer through global map.
-};
-
class CJS_TimerObj : public CJS_Object {
public:
static int GetObjDefnID();
static void DefineJSObjects(CFXJS_Engine* pEngine);
explicit CJS_TimerObj(v8::Local<v8::Object> pObject);
- ~CJS_TimerObj() override = default;
+ ~CJS_TimerObj() override;
+
+ void SetTimer(GlobalTimer* pTimer);
+ int GetTimerID() const { return m_nTimerID; }
private:
static int ObjDefnID;
+
+ int m_nTimerID; // Weak reference to GlobalTimer through global map.
};
#endif // FXJS_CJS_TIMEROBJ_H_