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

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

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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
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 _PWL_CARET_H_ 7 #ifndef _PWL_CARET_H_
8 #define _PWL_CARET_H_ 8 #define _PWL_CARET_H_
9 9
10 struct PWL_CARET_INFO 10 struct PWL_CARET_INFO {
11 { 11 public:
12 public: 12 PWL_CARET_INFO() : bVisible(FALSE), ptHead(0, 0), ptFoot(0, 0) {}
13 » PWL_CARET_INFO() : bVisible(FALSE), ptHead(0,0), ptFoot(0,0)
14 » {» »
15 » }
16 13
17 » FX_BOOL»» » » » » bVisible; 14 FX_BOOL bVisible;
18 » CPDF_Point» » » » » ptHead; 15 CPDF_Point ptHead;
19 » CPDF_Point» » » » » ptFoot; 16 CPDF_Point ptFoot;
20 }; 17 };
21 18
19 class CPWL_Caret : public CPWL_Wnd {
20 public:
21 CPWL_Caret();
22 virtual ~CPWL_Caret();
22 23
23 class CPWL_Caret : public CPWL_Wnd 24 public:
24 { 25 virtual CFX_ByteString GetClassName() const;
25 public: 26 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream);
26 » CPWL_Caret(); 27 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice,
27 » virtual ~CPWL_Caret(); 28 CPDF_Matrix* pUser2Device);
28 public: 29 virtual void InvalidateRect(CPDF_Rect* pRect = NULL);
29 » virtual CFX_ByteString» » GetClassName() const;
30 » virtual void» » » » GetThisAppearanceStream(CFX_Byte TextBuf & sAppStream);
31 » virtual void» » » » DrawThisAppearance(CFX_RenderDev ice* pDevice, CPDF_Matrix* pUser2Device);
32 » virtual void» » » » InvalidateRect(CPDF_Rect * pRect = NULL);
33 30
34 » virtual void» » » » SetVisible(FX_BOOL bVisible) {} 31 virtual void SetVisible(FX_BOOL bVisible) {}
35 32
36 » virtual»void» » » » TimerProc(); 33 virtual void TimerProc();
37 34
38 » void» » » » » » SetCaret(FX_BOOL bVisibl e, const CPDF_Point & ptHead, const CPDF_Point & ptFoot);» 35 void SetCaret(FX_BOOL bVisible,
39 » CFX_ByteString» » » » GetCaretAppearanceStream(const C PDF_Point & ptOffset); 36 const CPDF_Point& ptHead,
37 const CPDF_Point& ptFoot);
38 CFX_ByteString GetCaretAppearanceStream(const CPDF_Point& ptOffset);
40 39
41 private: 40 private:
42 » void» » » » » » GetCaretApp(CFX_ByteText Buf & sAppStream,const CPDF_Point & ptOffset); 41 void GetCaretApp(CFX_ByteTextBuf& sAppStream, const CPDF_Point& ptOffset);
43 » CPDF_Rect» » » » » GetCaretRect() const; 42 CPDF_Rect GetCaretRect() const;
44 43
45 » FX_BOOL»» » » » » m_bFlash; 44 FX_BOOL m_bFlash;
46 » CPDF_Point» » » » » m_ptHead; 45 CPDF_Point m_ptHead;
47 » CPDF_Point» » » » » m_ptFoot; 46 CPDF_Point m_ptFoot;
48 » FX_FLOAT» » » » » m_fWidth; 47 FX_FLOAT m_fWidth;
49 » FX_INT32» » » » » » m_nDelay; 48 FX_INT32 m_nDelay;
50 49
51 public: 50 public:
52 » void» » » » » » SetInvalidRect(CPDF_Rect rc) {m_rcInvalid = rc;} 51 void SetInvalidRect(CPDF_Rect rc) { m_rcInvalid = rc; }
53 private: 52
54 » CPDF_Rect» » » » » m_rcInvalid; 53 private:
54 CPDF_Rect m_rcInvalid;
55 }; 55 };
56 56
57 #endif // !defined(AFX_PWL_CARET_H__6A729612_4173_4B65_BCAB_7C6C850ECA47__INCLUD ED_) 57 #endif // !defined(AFX_PWL_CARET_H__6A729612_4173_4B65_BCAB_7C6C850ECA47__INCLU DED_)
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698