| 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 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" | 7 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" |
| 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" | 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
| 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" | 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
| 10 #include "fpdfsdk/include/fsdk_define.h" | 10 #include "fpdfsdk/include/fsdk_define.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 void CPDFXFA_App::GetVariation(CFX_WideString& wsVariation) { | 129 void CPDFXFA_App::GetVariation(CFX_WideString& wsVariation) { |
| 130 wsVariation = JS_STR_VIEWERVARIATION; | 130 wsVariation = JS_STR_VIEWERVARIATION; |
| 131 } | 131 } |
| 132 | 132 |
| 133 void CPDFXFA_App::GetVersion(CFX_WideString& wsVersion) { | 133 void CPDFXFA_App::GetVersion(CFX_WideString& wsVersion) { |
| 134 wsVersion = JS_STR_VIEWERVERSION_XFA; | 134 wsVersion = JS_STR_VIEWERVERSION_XFA; |
| 135 } | 135 } |
| 136 | 136 |
| 137 void CPDFXFA_App::Beep(FX_DWORD dwType) { | 137 void CPDFXFA_App::Beep(uint32_t dwType) { |
| 138 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 138 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
| 139 if (pEnv) { | 139 if (pEnv) { |
| 140 pEnv->JS_appBeep(dwType); | 140 pEnv->JS_appBeep(dwType); |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 int32_t CPDFXFA_App::MsgBox(const CFX_WideStringC& wsMessage, | 144 int32_t CPDFXFA_App::MsgBox(const CFX_WideStringC& wsMessage, |
| 145 const CFX_WideStringC& wsTitle, | 145 const CFX_WideStringC& wsTitle, |
| 146 FX_DWORD dwIconType, | 146 uint32_t dwIconType, |
| 147 FX_DWORD dwButtonType) { | 147 uint32_t dwButtonType) { |
| 148 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 148 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
| 149 if (!pEnv) | 149 if (!pEnv) |
| 150 return -1; | 150 return -1; |
| 151 | 151 |
| 152 FX_DWORD iconType = 0; | 152 uint32_t iconType = 0; |
| 153 int iButtonType = 0; | 153 int iButtonType = 0; |
| 154 switch (dwIconType) { | 154 switch (dwIconType) { |
| 155 case XFA_MBICON_Error: | 155 case XFA_MBICON_Error: |
| 156 iconType |= 0; | 156 iconType |= 0; |
| 157 break; | 157 break; |
| 158 case XFA_MBICON_Warning: | 158 case XFA_MBICON_Warning: |
| 159 iconType |= 1; | 159 iconType |= 1; |
| 160 break; | 160 break; |
| 161 case XFA_MBICON_Question: | 161 case XFA_MBICON_Question: |
| 162 iconType |= 2; | 162 iconType |= 2; |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 return FALSE; | 531 return FALSE; |
| 532 } | 532 } |
| 533 | 533 |
| 534 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { | 534 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { |
| 535 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; | 535 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; |
| 536 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 536 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
| 537 if (pEnv) | 537 if (pEnv) |
| 538 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); | 538 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); |
| 539 return pAdapter; | 539 return pAdapter; |
| 540 } | 540 } |
| OLD | NEW |