| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _JS_OBJECT_H_ | 7 #ifndef _JS_OBJECT_H_ |
| 8 #define _JS_OBJECT_H_ | 8 #define _JS_OBJECT_H_ |
| 9 | 9 |
| 10 class CJS_Object; | 10 class CJS_Object; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 GetTimeMap().SetAt(m_nTimerID,this); | 191 GetTimeMap().SetAt(m_nTimerID,this); |
| 192 m_dwElapse = nElapse; | 192 m_dwElapse = nElapse; |
| 193 return m_nTimerID; | 193 return m_nTimerID; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 void KillJSTimer() | 196 void KillJSTimer() |
| 197 { | 197 { |
| 198 if (m_nTimerID) | 198 if (m_nTimerID) |
| 199 { | 199 { |
| 200 if (m_pApp == NULL) { | 200 if (m_pApp == NULL) { |
| 201 » » » » m_sTimeMap.RemoveAt(m_nTimerID); | 201 » » » » GetTimeMap().RemoveAt(m_nTimerID); |
| 202 m_nTimerID = 0; | 202 m_nTimerID = 0; |
| 203 return; | 203 return; |
| 204 } | 204 } |
| 205 IFX_SystemHandler* pHandler = m_pApp->GetSysHandler(); | 205 IFX_SystemHandler* pHandler = m_pApp->GetSysHandler(); |
| 206 pHandler->KillTimer(m_nTimerID); | 206 pHandler->KillTimer(m_nTimerID); |
| 207 GetTimeMap().RemoveAt(m_nTimerID); | 207 GetTimeMap().RemoveAt(m_nTimerID); |
| 208 m_nTimerID = 0; | 208 m_nTimerID = 0; |
| 209 } | 209 } |
| 210 }; | 210 }; |
| 211 | 211 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 FX_DWORD m_dwStartTime; | 285 FX_DWORD m_dwStartTime; |
| 286 FX_DWORD m_dwTimeOut; | 286 FX_DWORD m_dwTimeOut; |
| 287 FX_DWORD m_dwElapse; | 287 FX_DWORD m_dwElapse; |
| 288 CJS_Runtime* m_pRuntime; | 288 CJS_Runtime* m_pRuntime; |
| 289 CFX_WideString m_swJScript; | 289 CFX_WideString m_swJScript; |
| 290 int m_nType;
//0:Interval; 1:TimeOut | 290 int m_nType;
//0:Interval; 1:TimeOut |
| 291 | 291 |
| 292 CPDFDoc_Environment* m_pApp; | 292 CPDFDoc_Environment* m_pApp; |
| 293 }; | 293 }; |
| 294 #endif //_JS_OBJECT_H_ | 294 #endif //_JS_OBJECT_H_ |
| OLD | NEW |