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

Side by Side Diff: fpdfsdk/include/fsdk_define.h

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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/include/fsdk_baseannot.h ('k') | fpdfsdk/include/fsdk_rendercontext.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_DEFINE_H 7 #ifndef _FPDFSDK_DEFINE_H
8 #define _FPDFSDK_DEFINE_H 8 #define _FPDFSDK_DEFINE_H
9 9
10 #ifdef _WIN32 10 #ifdef _WIN32
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 #ifndef FX_COLORREFTOARGB 61 #ifndef FX_COLORREFTOARGB
62 /** @brief Convert a #FX_COLORREF to a #FX_ARGB. */ 62 /** @brief Convert a #FX_COLORREF to a #FX_ARGB. */
63 #define FX_COLORREFTOARGB(rgb) ((FX_DWORD)0xFF000000|(((FX_DWORD)rgb & 0x000000FF) << 16)|((FX_DWORD)rgb & 0x0000FF00)|(((FX_DWORD)rgb & 0x00FF0000) >> 16)) 63 #define FX_COLORREFTOARGB(rgb) ((FX_DWORD)0xFF000000|(((FX_DWORD)rgb & 0x000000FF) << 16)|((FX_DWORD)rgb & 0x0000FF00)|(((FX_DWORD)rgb & 0x00FF0000) >> 16))
64 #endif 64 #endif
65 65
66 typedef unsigned int FX_UINT; 66 typedef unsigned int FX_UINT;
67 67
68 #include "fpdfview.h" 68 #include "fpdfview.h"
69 69
70 class CPDF_CustomAccess FX_FINAL : public IFX_FileRead, public CFX_Object 70 class CPDF_CustomAccess FX_FINAL : public IFX_FileRead
71 { 71 {
72 public: 72 public:
73 CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); 73 CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess);
74 ~CPDF_CustomAccess() {} 74 ~CPDF_CustomAccess() {}
75 75
76 virtual FX_FILESIZE GetSize() FX_OVERRIDE { return m_FileAccess.m_Fi leLen; } 76 virtual FX_FILESIZE GetSize() FX_OVERRIDE { return m_FileAccess.m_Fi leLen; }
77 77
78 virtual void Release() FX_OVERRIDE { delete this; } 78 virtual void Release() FX_OVERRIDE { delete this; }
79 79
80 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size _t size) FX_OVERRIDE; 80 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size _t size) FX_OVERRIDE;
81 81
82 private: 82 private:
83 FPDF_FILEACCESS m_FileAccess; 83 FPDF_FILEACCESS m_FileAccess;
84 }; 84 };
85 85
86 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); 86 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable);
87 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); 87 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy);
88 88
89 89
90 #endif//_FPDFSDK_DEFINE_H 90 #endif//_FPDFSDK_DEFINE_H
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseannot.h ('k') | fpdfsdk/include/fsdk_rendercontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698