| Index: fpdfsdk/javascript/app.h
|
| diff --git a/fpdfsdk/javascript/app.h b/fpdfsdk/javascript/app.h
|
| index c6cda555d90bb58bf4657f7c60e51f8f441911cb..bb083cedb449dcd8004c439cac95672e7ff006cc 100644
|
| --- a/fpdfsdk/javascript/app.h
|
| +++ b/fpdfsdk/javascript/app.h
|
| @@ -20,12 +20,11 @@ class TimerObj : public CJS_EmbedObj {
|
| TimerObj(CJS_Object* pJSObject);
|
| ~TimerObj() override;
|
|
|
| - public:
|
| void SetTimer(CJS_Timer* pTimer);
|
| - CJS_Timer* GetTimer() const;
|
| + int GetTimerID() const { return m_nTimerID; }
|
|
|
| private:
|
| - CJS_Timer* m_pTimer;
|
| + int m_nTimerID; // Weak reference to timer through global map.
|
| };
|
|
|
| class CJS_TimerObj : public CJS_Object {
|
| @@ -158,6 +157,7 @@ class app : public CJS_EmbedObj {
|
| private:
|
| // CJS_EmbedObj
|
| void TimerProc(CJS_Timer* pTimer) override;
|
| + void CancelProc(CJS_Timer* pTimer) override;
|
| void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript);
|
|
|
| void ClearTimerCommon(const CJS_Value& param);
|
|
|