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

Unified Diff: fpdfsdk/cpdfsdk_pageview.h

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/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_pageview.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/cpdfsdk_pageview.h
diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h
index 6878324514572423a7abaa35e7147ab9a7538ae2..9a3443b4b05587f266948a4a4171473860de5e27 100644
--- a/fpdfsdk/cpdfsdk_pageview.h
+++ b/fpdfsdk/cpdfsdk_pageview.h
@@ -49,7 +49,7 @@ class CPDFSDK_PageView final : public CPDF_Page::View {
CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict);
#ifdef PDF_ENABLE_XFA
- FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot);
+ bool DeleteAnnot(CPDFSDK_Annot* pAnnot);
CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot);
CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget);
@@ -59,21 +59,21 @@ class CPDFSDK_PageView final : public CPDF_Page::View {
CPDF_Page* GetPDFPage() const;
CPDF_Document* GetPDFDocument();
CPDFSDK_FormFillEnvironment* GetFormFillEnv() const { return m_pFormFillEnv; }
- FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
- FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
+ bool OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
+ bool OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
#ifdef PDF_ENABLE_XFA
- FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
- FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
+ bool OnRButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
+ bool OnRButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
#endif // PDF_ENABLE_XFA
- FX_BOOL OnChar(int nChar, uint32_t nFlag);
- FX_BOOL OnKeyDown(int nKeyCode, int nFlag);
- FX_BOOL OnKeyUp(int nKeyCode, int nFlag);
+ bool OnChar(int nChar, uint32_t nFlag);
+ bool OnKeyDown(int nKeyCode, int nFlag);
+ bool OnKeyUp(int nKeyCode, int nFlag);
- FX_BOOL OnMouseMove(const CFX_FloatPoint& point, int nFlag);
- FX_BOOL OnMouseWheel(double deltaX,
- double deltaY,
- const CFX_FloatPoint& point,
- int nFlag);
+ bool OnMouseMove(const CFX_FloatPoint& point, int nFlag);
+ bool OnMouseWheel(double deltaX,
+ double deltaY,
+ const CFX_FloatPoint& point,
+ int nFlag);
void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; }
void UpdateRects(const std::vector<CFX_FloatRect>& rects);
@@ -81,11 +81,11 @@ class CPDFSDK_PageView final : public CPDF_Page::View {
int GetPageIndex() const;
- void SetValid(FX_BOOL bValid) { m_bValid = bValid; }
- FX_BOOL IsValid() { return m_bValid; }
+ void SetValid(bool bValid) { m_bValid = bValid; }
+ bool IsValid() { return m_bValid; }
- void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; }
- FX_BOOL IsLocked() { return m_bLocked; }
+ void SetLock(bool bLocked) { m_bLocked = bLocked; }
+ bool IsLocked() { return m_bLocked; }
void SetBeingDestroyed() { m_bBeingDestroyed = true; }
bool IsBeingDestroyed() const { return m_bBeingDestroyed; }
@@ -107,11 +107,11 @@ class CPDFSDK_PageView final : public CPDF_Page::View {
#ifndef PDF_ENABLE_XFA
bool m_bOwnsPage;
#endif // PDF_ENABLE_XFA
- FX_BOOL m_bEnterWidget;
- FX_BOOL m_bExitWidget;
- FX_BOOL m_bOnWidget;
- FX_BOOL m_bValid;
- FX_BOOL m_bLocked;
+ bool m_bEnterWidget;
+ bool m_bExitWidget;
+ bool m_bOnWidget;
+ bool m_bValid;
+ bool m_bLocked;
bool m_bBeingDestroyed;
};
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_pageview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698