diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-23 13:36:00 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-23 13:36:00 -0700 |
commit | f1e7c461dfabbff6b65a072f24f6711b34159361 (patch) | |
tree | 3b0bb772a59669f06b86824a444fd06642592d4b /fpdfsdk/include/pdfwindow/PWL_Caret.h | |
parent | 320b2313d19869333ed453af546e61a9fc2b81c9 (diff) | |
download | pdfium-f1e7c461dfabbff6b65a072f24f6711b34159361.tar.xz |
Revert "FX_BOOL considered harmful, part 2."
This reverts commit 320b2313d19869333ed453af546e61a9fc2b81c9.
Reason for revert: build failure.
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1255693002 .
Diffstat (limited to 'fpdfsdk/include/pdfwindow/PWL_Caret.h')
-rw-r--r-- | fpdfsdk/include/pdfwindow/PWL_Caret.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/include/pdfwindow/PWL_Caret.h b/fpdfsdk/include/pdfwindow/PWL_Caret.h index 42743657b7..6838bc49e7 100644 --- a/fpdfsdk/include/pdfwindow/PWL_Caret.h +++ b/fpdfsdk/include/pdfwindow/PWL_Caret.h @@ -12,11 +12,11 @@ struct PWL_CARET_INFO { public: - PWL_CARET_INFO() : bVisible(false), ptHead(0,0), ptFoot(0,0) + PWL_CARET_INFO() : bVisible(FALSE), ptHead(0,0), ptFoot(0,0) { } - bool bVisible; + FX_BOOL bVisible; CPDF_Point ptHead; CPDF_Point ptFoot; }; @@ -32,9 +32,9 @@ public: virtual void GetThisAppearanceStream(CFX_ByteTextBuf & sAppStream); virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); virtual void InvalidateRect(CPDF_Rect * pRect = NULL); - virtual void SetVisible(bool bVisible) {} + virtual void SetVisible(FX_BOOL bVisible) {} virtual void TimerProc(); - void SetCaret(bool bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot); + void SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot); CFX_ByteString GetCaretAppearanceStream(const CPDF_Point & ptOffset); void SetInvalidRect(CPDF_Rect rc) {m_rcInvalid = rc;} @@ -42,7 +42,7 @@ private: void GetCaretApp(CFX_ByteTextBuf & sAppStream,const CPDF_Point & ptOffset); CPDF_Rect GetCaretRect() const; - bool m_bFlash; + FX_BOOL m_bFlash; CPDF_Point m_ptHead; CPDF_Point m_ptFoot; FX_FLOAT m_fWidth; |