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

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

Issue 1835693002: Remove FX_DWORD from fpdfsdk/ and testing/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 | « fpdfsdk/javascript/JS_GlobalData.cpp ('k') | fpdfsdk/javascript/JS_Object.cpp » ('j') | 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 FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_JS_OBJECT_H_
8 #define FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ 8 #define FPDFSDK_JAVASCRIPT_JS_OBJECT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 v8::Isolate* m_pIsolate; 73 v8::Isolate* m_pIsolate;
74 }; 74 };
75 75
76 class CJS_Timer : public CJS_Runtime::Observer { 76 class CJS_Timer : public CJS_Runtime::Observer {
77 public: 77 public:
78 CJS_Timer(CJS_EmbedObj* pObj, 78 CJS_Timer(CJS_EmbedObj* pObj,
79 CPDFDoc_Environment* pApp, 79 CPDFDoc_Environment* pApp,
80 CJS_Runtime* pRuntime, 80 CJS_Runtime* pRuntime,
81 int nType, 81 int nType,
82 const CFX_WideString& script, 82 const CFX_WideString& script,
83 FX_DWORD dwElapse, 83 uint32_t dwElapse,
84 FX_DWORD dwTimeOut); 84 uint32_t dwTimeOut);
85 ~CJS_Timer() override; 85 ~CJS_Timer() override;
86 86
87 void KillJSTimer(); 87 void KillJSTimer();
88 88
89 int GetType() const { return m_nType; } 89 int GetType() const { return m_nType; }
90 FX_DWORD GetTimeOut() const { return m_dwTimeOut; } 90 uint32_t GetTimeOut() const { return m_dwTimeOut; }
91 CJS_Runtime* GetRuntime() const { return m_bValid ? m_pRuntime : nullptr; } 91 CJS_Runtime* GetRuntime() const { return m_bValid ? m_pRuntime : nullptr; }
92 CFX_WideString GetJScript() const { return m_swJScript; } 92 CFX_WideString GetJScript() const { return m_swJScript; }
93 93
94 static void TimerProc(int idEvent); 94 static void TimerProc(int idEvent);
95 95
96 private: 96 private:
97 using TimerMap = std::map<FX_UINT, CJS_Timer*>; 97 using TimerMap = std::map<FX_UINT, CJS_Timer*>;
98 static TimerMap* GetGlobalTimerMap(); 98 static TimerMap* GetGlobalTimerMap();
99 99
100 // CJS_Runtime::Observer 100 // CJS_Runtime::Observer
101 void OnDestroyed() override; 101 void OnDestroyed() override;
102 102
103 FX_DWORD m_nTimerID; 103 uint32_t m_nTimerID;
104 CJS_EmbedObj* const m_pEmbedObj; 104 CJS_EmbedObj* const m_pEmbedObj;
105 bool m_bProcessing; 105 bool m_bProcessing;
106 bool m_bValid; 106 bool m_bValid;
107 107
108 // data 108 // data
109 const int m_nType; // 0:Interval; 1:TimeOut 109 const int m_nType; // 0:Interval; 1:TimeOut
110 const FX_DWORD m_dwTimeOut; 110 const uint32_t m_dwTimeOut;
111 const CFX_WideString m_swJScript; 111 const CFX_WideString m_swJScript;
112 CJS_Runtime* const m_pRuntime; 112 CJS_Runtime* const m_pRuntime;
113 CPDFDoc_Environment* const m_pApp; 113 CPDFDoc_Environment* const m_pApp;
114 }; 114 };
115 115
116 #endif // FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ 116 #endif // FPDFSDK_JAVASCRIPT_JS_OBJECT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/JS_GlobalData.cpp ('k') | fpdfsdk/javascript/JS_Object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698