Index: fpdfsdk/include/fsdk_define.h |
diff --git a/fpdfsdk/include/fsdk_define.h b/fpdfsdk/include/fsdk_define.h |
index f809043417b7251f3b1a1ce798f81997cdd0f6d7..29b265a428a2e1310cfa7d5239f75f6101f6240f 100644 |
--- a/fpdfsdk/include/fsdk_define.h |
+++ b/fpdfsdk/include/fsdk_define.h |
@@ -7,11 +7,6 @@ |
#ifndef FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
#define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
-#ifdef _WIN32 |
-#include <tchar.h> |
-#include <math.h> |
-#endif |
- |
#include "../../core/include/fpdfapi/fpdf_module.h" |
#include "../../core/include/fpdfapi/fpdf_pageobj.h" |
#include "../../core/include/fpdfapi/fpdf_parser.h" |
@@ -23,26 +18,11 @@ |
#include "../../core/include/fpdfdoc/fpdf_vt.h" |
#include "../../core/include/fxge/fx_ge.h" |
#include "../../core/include/fxge/fx_ge_win32.h" |
+#include "../../public/fpdfview.h" |
- |
-#ifndef FX_GetAValue |
-/** @brief It retrieves an intensity value for the alpha component of a #FX_ARGB value. */ |
-#define FX_GetAValue(argb) ((argb & 0xFF000000) >> 24) |
-#endif |
- |
-#ifndef FX_GetRValue |
-/** @brief It retrieves an intensity value for the red component of a #FX_ARGB value. */ |
-#define FX_GetRValue(argb) ((argb & 0x00FF0000) >> 16) |
-#endif |
- |
-#ifndef FX_GetGValue |
-/** @brief It retrieves an intensity value for the green component of a #FX_ARGB value. */ |
-#define FX_GetGValue(argb) ((argb & 0x0000FF00) >> 8) |
-#endif |
- |
-#ifndef FX_GetBValue |
-/** @brief It retrieves an intensity value for the blue component of a #FX_ARGB value. */ |
-#define FX_GetBValue(argb) (argb & 0x000000FF) |
+#ifdef _WIN32 |
+#include <tchar.h> |
+#include <math.h> |
#endif |
#ifndef FX_ARGBTOCOLORREF |
@@ -56,8 +36,8 @@ |
#endif |
typedef unsigned int FX_UINT; |
- |
-#include "../../public/fpdfview.h" |
+class CRenderContext; |
+class IFSDK_PAUSE_Adapter; |
class CPDF_CustomAccess final : public IFX_FileRead |
{ |
@@ -75,8 +55,12 @@ private: |
FPDF_FILEACCESS m_FileAccess; |
}; |
-void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
-FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
- |
+void DropContext(void* data); |
+void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
+FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
+void FPDF_RenderPage_Retail(CRenderContext* pContext, FPDF_PAGE page, |
+ int start_x, int start_y, int size_x, int size_y, |
+ int rotate, int flags, FX_BOOL bNeedToRestore, |
+ IFSDK_PAUSE_Adapter* pause); |
#endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |