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

Side by Side Diff: fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h

Issue 2436103002: Remove FWL globals. (Closed)
Patch Set: Review feedback Created 4 years, 1 month 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 | fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.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_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_ 7 #ifndef FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_
8 #define FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_ 8 #define FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 FWL_Error Stop(IFWL_TimerInfo* pTimerInfo) override; 26 FWL_Error Stop(IFWL_TimerInfo* pTimerInfo) override;
27 27
28 protected: 28 protected:
29 static void TimerProc(int32_t idEvent); 29 static void TimerProc(int32_t idEvent);
30 30
31 static std::vector<CFWL_TimerInfo*>* s_TimerArray; 31 static std::vector<CFWL_TimerInfo*>* s_TimerArray;
32 CPDFSDK_FormFillEnvironment* const m_pFormFillEnv; 32 CPDFSDK_FormFillEnvironment* const m_pFormFillEnv;
33 }; 33 };
34 34
35 struct CFWL_TimerInfo : public IFWL_TimerInfo { 35 struct CFWL_TimerInfo : public IFWL_TimerInfo {
36 CFWL_TimerInfo() : pTimer(nullptr) {} 36 CFWL_TimerInfo(IFWL_AdapterTimerMgr* mgr, int32_t event, IFWL_Timer* timer)
37 CFWL_TimerInfo(int32_t event, IFWL_Timer* timer) 37 : IFWL_TimerInfo(mgr), idEvent(event), pTimer(timer) {}
38 : idEvent(event), pTimer(timer) {}
39 38
40 int32_t idEvent; 39 int32_t idEvent;
41 IFWL_Timer* pTimer; 40 IFWL_Timer* pTimer;
42 }; 41 };
43 42
44 #endif // FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_ 43 #endif // FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698