Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: fpdfsdk/include/javascript/JS_Object.h

Issue 823653004: Fix XFA specific use of m_sTimeMap. This fixes a build break. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698