| 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 "../../public/fpdf_ext.h" | 7 #include "../../public/fpdf_ext.h" |
| 8 #include "../include/fsdk_define.h" | 8 #include "../include/fsdk_define.h" |
| 9 | 9 |
| 10 #define FPDFSDK_UNSUPPORT_CALL 100 | 10 #define FPDFSDK_UNSUPPORT_CALL 100 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 void CFSDK_UnsupportInfo_Adapter::ReportError(int nErrorType) | 23 void CFSDK_UnsupportInfo_Adapter::ReportError(int nErrorType) |
| 24 { | 24 { |
| 25 if(m_unsp_info && m_unsp_info->FSDK_UnSupport_Handler) | 25 if(m_unsp_info && m_unsp_info->FSDK_UnSupport_Handler) |
| 26 { | 26 { |
| 27 m_unsp_info->FSDK_UnSupport_Handler(m_unsp_info,nErrorType); | 27 m_unsp_info->FSDK_UnSupport_Handler(m_unsp_info,nErrorType); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 | 30 |
| 31 void FreeUnsupportInfo(FX_LPVOID pData) | 31 void FreeUnsupportInfo(void* pData) |
| 32 { | 32 { |
| 33 CFSDK_UnsupportInfo_Adapter * pAdapter = (CFSDK_UnsupportInfo_Adapter *)
pData; | 33 CFSDK_UnsupportInfo_Adapter * pAdapter = (CFSDK_UnsupportInfo_Adapter *)
pData; |
| 34 delete pAdapter; | 34 delete pAdapter; |
| 35 } | 35 } |
| 36 | 36 |
| 37 FX_BOOL FPDF_UnSupportError(int nError) | 37 FX_BOOL FPDF_UnSupportError(int nError) |
| 38 { | 38 { |
| 39 CFSDK_UnsupportInfo_Adapter * pAdapter = (CFSDK_UnsupportInfo_Adapter *)
CPDF_ModuleMgr::Get()->GetPrivateData((void *)FPDFSDK_UNSUPPORT_CALL); | 39 CFSDK_UnsupportInfo_Adapter * pAdapter = (CFSDK_UnsupportInfo_Adapter *)
CPDF_ModuleMgr::Get()->GetPrivateData((void *)FPDFSDK_UNSUPPORT_CALL); |
| 40 | 40 |
| 41 if(!pAdapter) | 41 if(!pAdapter) |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 return PAGEMODE_USETHUMBS; | 232 return PAGEMODE_USETHUMBS; |
| 233 else if (strPageMode.EqualNoCase(FX_BSTR("FullScreen"))) | 233 else if (strPageMode.EqualNoCase(FX_BSTR("FullScreen"))) |
| 234 return PAGEMODE_FULLSCREEN; | 234 return PAGEMODE_FULLSCREEN; |
| 235 else if (strPageMode.EqualNoCase(FX_BSTR("UseOC"))) | 235 else if (strPageMode.EqualNoCase(FX_BSTR("UseOC"))) |
| 236 return PAGEMODE_USEOC; | 236 return PAGEMODE_USEOC; |
| 237 else if (strPageMode.EqualNoCase(FX_BSTR("UseAttachments"))) | 237 else if (strPageMode.EqualNoCase(FX_BSTR("UseAttachments"))) |
| 238 return PAGEMODE_USEATTACHMENTS; | 238 return PAGEMODE_USEATTACHMENTS; |
| 239 | 239 |
| 240 return PAGEMODE_UNKNOWN; | 240 return PAGEMODE_UNKNOWN; |
| 241 } | 241 } |
| OLD | NEW |