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

Unified Diff: core/include/fpdfapi/fpdf_page.h

Issue 1255693002: Revert "FX_BOOL considered harmful, part 2." (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/include/fpdfapi/fpdf_pageobj.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/include/fpdfapi/fpdf_page.h
diff --git a/core/include/fpdfapi/fpdf_page.h b/core/include/fpdfapi/fpdf_page.h
index d76920ad1ab6ca3f16c91e2a149cf4013b18c77f..7aed626faec58a30670f96967a3ae661ddd27cbc 100644
--- a/core/include/fpdfapi/fpdf_page.h
+++ b/core/include/fpdfapi/fpdf_page.h
@@ -31,7 +31,7 @@ class CPDF_PageObjects
{
public:
- CPDF_PageObjects(bool bReleaseMembers = true);
+ CPDF_PageObjects(FX_BOOL bReleaseMembers = TRUE);
~CPDF_PageObjects();
@@ -45,7 +45,7 @@ public:
return m_ParseState;
}
- bool IsParsed() const
+ FX_BOOL IsParsed() const
{
return m_ParseState == PDF_CONTENT_PARSED;
}
@@ -97,7 +97,7 @@ public:
void Transform(const CFX_AffineMatrix& matrix);
- bool BackgroundAlphaNeeded() const
+ FX_BOOL BackgroundAlphaNeeded() const
{
return m_bBackgroundAlphaNeeded;
}
@@ -125,15 +125,15 @@ protected:
CFX_PtrList m_ObjectList;
- bool m_bBackgroundAlphaNeeded;
+ FX_BOOL m_bBackgroundAlphaNeeded;
- bool m_bReleaseMembers;
+ FX_BOOL m_bReleaseMembers;
void LoadTransInfo();
void ClearCacheObjects();
CPDF_ContentParser* m_pParser;
- bool m_ParseState;
+ FX_BOOL m_ParseState;
};
class CPDF_Page : public CPDF_PageObjects, public CFX_PrivateData
{
@@ -143,11 +143,11 @@ public:
~CPDF_Page();
- void Load(CPDF_Document* pDocument, CPDF_Dictionary* pPageDict, bool bPageCache = true);
+ void Load(CPDF_Document* pDocument, CPDF_Dictionary* pPageDict, FX_BOOL bPageCache = TRUE);
- void StartParse(CPDF_ParseOptions* pOptions = NULL, bool bReParse = false);
+ void StartParse(CPDF_ParseOptions* pOptions = NULL, FX_BOOL bReParse = FALSE);
- void ParseContent(CPDF_ParseOptions* pOptions = NULL, bool bReParse = false);
+ void ParseContent(CPDF_ParseOptions* pOptions = NULL, FX_BOOL bReParse = FALSE);
void GetDisplayMatrix(CFX_AffineMatrix& matrix, int xPos, int yPos,
int xSize, int ySize, int iRotate) const;
@@ -200,13 +200,13 @@ public:
CPDF_ParseOptions();
- bool m_bTextOnly;
+ FX_BOOL m_bTextOnly;
- bool m_bMarkedContent;
+ FX_BOOL m_bMarkedContent;
- bool m_bSeparateForm;
+ FX_BOOL m_bSeparateForm;
- bool m_bDecodeInlineImage;
+ FX_BOOL m_bDecodeInlineImage;
};
class CPDF_Form : public CPDF_PageObjects
{
@@ -229,7 +229,7 @@ class CPDF_PageContentGenerate
public:
CPDF_PageContentGenerate(CPDF_Page* pPage);
~CPDF_PageContentGenerate();
- bool InsertPageObject(CPDF_PageObject* pPageObject);
+ FX_BOOL InsertPageObject(CPDF_PageObject* pPageObject);
void GenerateContent();
void TransformContent(CFX_Matrix& matrix);
protected:
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/include/fpdfapi/fpdf_pageobj.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698