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

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_Caret.h

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Button.h ('k') | fpdfsdk/include/pdfwindow/PWL_ComboBox.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_INCLUDE_PDFWINDOW_PWL_CARET_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_CARET_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_CARET_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_CARET_H_
9 9
10 #include "PWL_Wnd.h" 10 #include "PWL_Wnd.h"
11 11
12 struct PWL_CARET_INFO 12 struct PWL_CARET_INFO
13 { 13 {
14 public: 14 public:
15 » PWL_CARET_INFO() : bVisible(FALSE), ptHead(0,0), ptFoot(0,0) 15 » PWL_CARET_INFO() : bVisible(false), ptHead(0,0), ptFoot(0,0)
16 { 16 {
17 } 17 }
18 18
19 » FX_BOOL»» » » » » bVisible; 19 » bool» » » » » » bVisible;
20 CPDF_Point ptHead; 20 CPDF_Point ptHead;
21 CPDF_Point ptFoot; 21 CPDF_Point ptFoot;
22 }; 22 };
23 23
24 24
25 class CPWL_Caret : public CPWL_Wnd 25 class CPWL_Caret : public CPWL_Wnd
26 { 26 {
27 public: 27 public:
28 CPWL_Caret(); 28 CPWL_Caret();
29 virtual ~CPWL_Caret(); 29 virtual ~CPWL_Caret();
30 30
31 virtual CFX_ByteString GetClassName() const; 31 virtual CFX_ByteString GetClassName() const;
32 virtual void GetThisAppearanceStream(CFX_Byte TextBuf & sAppStream); 32 virtual void GetThisAppearanceStream(CFX_Byte TextBuf & sAppStream);
33 virtual void DrawThisAppearance(CFX_RenderDev ice* pDevice, CPDF_Matrix* pUser2Device); 33 virtual void DrawThisAppearance(CFX_RenderDev ice* pDevice, CPDF_Matrix* pUser2Device);
34 virtual void InvalidateRect(CPDF_Rect * pRect = NULL); 34 virtual void InvalidateRect(CPDF_Rect * pRect = NULL);
35 » virtual void» » » » SetVisible(FX_BOOL bVisible) {} 35 » virtual void» » » » SetVisible(bool bVisible) {}
36 virtual void TimerProc(); 36 virtual void TimerProc();
37 » void» » » » » » SetCaret(FX_BOOL bVisibl e, const CPDF_Point & ptHead, const CPDF_Point & ptFoot); 37 » void» » » » » » SetCaret(bool bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot);
38 CFX_ByteString GetCaretAppearanceStream(const C PDF_Point & ptOffset); 38 CFX_ByteString GetCaretAppearanceStream(const C PDF_Point & ptOffset);
39 void SetInvalidRect(CPDF_Rect rc) {m_rcInvalid = rc;} 39 void SetInvalidRect(CPDF_Rect rc) {m_rcInvalid = rc;}
40 40
41 private: 41 private:
42 void GetCaretApp(CFX_ByteText Buf & sAppStream,const CPDF_Point & ptOffset); 42 void GetCaretApp(CFX_ByteText Buf & sAppStream,const CPDF_Point & ptOffset);
43 CPDF_Rect GetCaretRect() const; 43 CPDF_Rect GetCaretRect() const;
44 44
45 » FX_BOOL»» » » » » m_bFlash; 45 » bool» » » » » » m_bFlash;
46 CPDF_Point m_ptHead; 46 CPDF_Point m_ptHead;
47 CPDF_Point m_ptFoot; 47 CPDF_Point m_ptFoot;
48 FX_FLOAT m_fWidth; 48 FX_FLOAT m_fWidth;
49 int32_t m_nDelay; 49 int32_t m_nDelay;
50 CPDF_Rect m_rcInvalid; 50 CPDF_Rect m_rcInvalid;
51 }; 51 };
52 52
53 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_CARET_H_ 53 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_CARET_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Button.h ('k') | fpdfsdk/include/pdfwindow/PWL_ComboBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698