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

Side by Side Diff: fpdfsdk/fpdfxfa/include/fpdfxfa_util.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 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/fpdfxfa/fpdfxfa_util.cpp ('k') | xfa/fwl/basewidget/fwl_barcodeimp.h » ('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_INCLUDE_FPDFXFA_UTIL_H_ 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_UTIL_H_
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_UTIL_H_ 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_UTIL_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 12 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
13 #include "xfa/fwl/core/include/ifwl_adaptertimermgr.h" 13 #include "xfa/fwl/core/include/ifwl_adaptertimermgr.h"
14 14
15 #define JS_STR_VIEWERTYPE_STANDARD L"Exchange" 15 #define JS_STR_VIEWERTYPE_STANDARD L"Exchange"
16 #define JS_STR_LANGUANGE L"ENU" 16 #define JS_STR_LANGUANGE L"ENU"
17 #define JS_STR_VIEWERVARIATION L"Full" 17 #define JS_STR_VIEWERVARIATION L"Full"
18 #define JS_STR_VIEWERVERSION_XFA L"11" 18 #define JS_STR_VIEWERVERSION_XFA L"11"
19 19
20 struct CFWL_TimerInfo; 20 struct CFWL_TimerInfo;
21 21
22 class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { 22 class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr {
23 public: 23 public:
24 CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} 24 CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {}
25 virtual FWL_ERR Start(IFWL_Timer* pTimer, 25 virtual FWL_Error Start(IFWL_Timer* pTimer,
26 uint32_t dwElapse, 26 uint32_t dwElapse,
27 FWL_HTIMER& hTimer, 27 FWL_HTIMER& hTimer,
28 FX_BOOL bImmediately = TRUE); 28 FX_BOOL bImmediately = TRUE);
29 virtual FWL_ERR Stop(FWL_HTIMER hTimer); 29 virtual FWL_Error Stop(FWL_HTIMER hTimer);
30 30
31 protected: 31 protected:
32 static void TimerProc(int32_t idEvent); 32 static void TimerProc(int32_t idEvent);
33 33
34 static std::vector<CFWL_TimerInfo*>* s_TimerArray; 34 static std::vector<CFWL_TimerInfo*>* s_TimerArray;
35 CPDFDoc_Environment* const m_pEnv; 35 CPDFDoc_Environment* const m_pEnv;
36 }; 36 };
37 37
38 struct CFWL_TimerInfo { 38 struct CFWL_TimerInfo {
39 CFWL_TimerInfo() : pTimer(nullptr) {} 39 CFWL_TimerInfo() : pTimer(nullptr) {}
40 CFWL_TimerInfo(int32_t event, IFWL_Timer* timer) 40 CFWL_TimerInfo(int32_t event, IFWL_Timer* timer)
41 : idEvent(event), pTimer(timer) {} 41 : idEvent(event), pTimer(timer) {}
42 42
43 int32_t idEvent; 43 int32_t idEvent;
44 IFWL_Timer* pTimer; 44 IFWL_Timer* pTimer;
45 }; 45 };
46 46
47 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_UTIL_H_ 47 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_UTIL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_util.cpp ('k') | xfa/fwl/basewidget/fwl_barcodeimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698