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

Unified Diff: fpdfsdk/fpdfxfa/cpdfxfa_page.cpp

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 years, 1 month 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 | « fpdfsdk/fpdfxfa/cpdfxfa_page.h ('k') | fpdfsdk/fsdk_actionhandler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fpdfxfa/cpdfxfa_page.cpp
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp
index 96ffd0b90e531d0a8e539d836cc47e06aef2b657..8cc325009b4c51f991e8ea23e354a888f820551d 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp
@@ -27,48 +27,48 @@ CPDFXFA_Page::~CPDFXFA_Page() {
m_pContext->RemovePage(this);
}
-FX_BOOL CPDFXFA_Page::LoadPDFPage() {
+bool CPDFXFA_Page::LoadPDFPage() {
if (!m_pContext)
- return FALSE;
+ return false;
CPDF_Document* pPDFDoc = m_pContext->GetPDFDoc();
if (!pPDFDoc)
- return FALSE;
+ return false;
CPDF_Dictionary* pDict = pPDFDoc->GetPage(m_iPageIndex);
if (!pDict)
- return FALSE;
+ return false;
if (!m_pPDFPage || m_pPDFPage->m_pFormDict != pDict) {
m_pPDFPage = pdfium::MakeUnique<CPDF_Page>(pPDFDoc, pDict, true);
m_pPDFPage->ParseContent();
}
- return TRUE;
+ return true;
}
-FX_BOOL CPDFXFA_Page::LoadXFAPageView() {
+bool CPDFXFA_Page::LoadXFAPageView() {
if (!m_pContext)
- return FALSE;
+ return false;
CXFA_FFDoc* pXFADoc = m_pContext->GetXFADoc();
if (!pXFADoc)
- return FALSE;
+ return false;
CXFA_FFDocView* pXFADocView = m_pContext->GetXFADocView();
if (!pXFADocView)
- return FALSE;
+ return false;
CXFA_FFPageView* pPageView = pXFADocView->GetPageView(m_iPageIndex);
if (!pPageView)
- return FALSE;
+ return false;
m_pXFAPageView = pPageView;
- return TRUE;
+ return true;
}
-FX_BOOL CPDFXFA_Page::LoadPage() {
+bool CPDFXFA_Page::LoadPage() {
if (!m_pContext || m_iPageIndex < 0)
- return FALSE;
+ return false;
int iDocType = m_pContext->GetDocType();
switch (iDocType) {
@@ -80,18 +80,18 @@ FX_BOOL CPDFXFA_Page::LoadPage() {
return LoadXFAPageView();
}
default:
- return FALSE;
+ return false;
}
}
-FX_BOOL CPDFXFA_Page::LoadPDFPage(CPDF_Dictionary* pageDict) {
+bool CPDFXFA_Page::LoadPDFPage(CPDF_Dictionary* pageDict) {
if (!m_pContext || m_iPageIndex < 0 || !pageDict)
- return FALSE;
+ return false;
m_pPDFPage =
pdfium::MakeUnique<CPDF_Page>(m_pContext->GetPDFDoc(), pageDict, true);
m_pPDFPage->ParseContent();
- return TRUE;
+ return true;
}
FX_FLOAT CPDFXFA_Page::GetPageWidth() const {
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_page.h ('k') | fpdfsdk/fsdk_actionhandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698