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

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

Issue 2031653003: Get rid of NULLs in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_core
Patch Set: rebase Created 4 years, 6 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/jsapi/fxjs_v8.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.cpp » ('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_PDFWINDOW_PWL_CARET_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_CARET_H_
8 #define FPDFSDK_PDFWINDOW_PWL_CARET_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_CARET_H_
9 9
10 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" 10 #include "fpdfsdk/pdfwindow/PWL_Wnd.h"
(...skipping 10 matching lines...) Expand all
21 class CPWL_Caret : public CPWL_Wnd { 21 class CPWL_Caret : public CPWL_Wnd {
22 public: 22 public:
23 CPWL_Caret(); 23 CPWL_Caret();
24 ~CPWL_Caret() override; 24 ~CPWL_Caret() override;
25 25
26 // CPWL_Wnd 26 // CPWL_Wnd
27 CFX_ByteString GetClassName() const override; 27 CFX_ByteString GetClassName() const override;
28 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; 28 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override;
29 void DrawThisAppearance(CFX_RenderDevice* pDevice, 29 void DrawThisAppearance(CFX_RenderDevice* pDevice,
30 CFX_Matrix* pUser2Device) override; 30 CFX_Matrix* pUser2Device) override;
31 void InvalidateRect(CFX_FloatRect* pRect = NULL) override; 31 void InvalidateRect(CFX_FloatRect* pRect = nullptr) override;
32 void SetVisible(FX_BOOL bVisible) override {} 32 void SetVisible(FX_BOOL bVisible) override {}
33 void TimerProc() override; 33 void TimerProc() override;
34 34
35 void SetCaret(FX_BOOL bVisible, 35 void SetCaret(FX_BOOL bVisible,
36 const CFX_FloatPoint& ptHead, 36 const CFX_FloatPoint& ptHead,
37 const CFX_FloatPoint& ptFoot); 37 const CFX_FloatPoint& ptFoot);
38 CFX_ByteString GetCaretAppearanceStream(const CFX_FloatPoint& ptOffset); 38 CFX_ByteString GetCaretAppearanceStream(const CFX_FloatPoint& ptOffset);
39 void SetInvalidRect(CFX_FloatRect rc) { m_rcInvalid = rc; } 39 void SetInvalidRect(CFX_FloatRect rc) { m_rcInvalid = rc; }
40 40
41 private: 41 private:
42 void GetCaretApp(CFX_ByteTextBuf& sAppStream, const CFX_FloatPoint& ptOffset); 42 void GetCaretApp(CFX_ByteTextBuf& sAppStream, const CFX_FloatPoint& ptOffset);
43 CFX_FloatRect GetCaretRect() const; 43 CFX_FloatRect GetCaretRect() const;
44 44
45 FX_BOOL m_bFlash; 45 FX_BOOL m_bFlash;
46 CFX_FloatPoint m_ptHead; 46 CFX_FloatPoint m_ptHead;
47 CFX_FloatPoint m_ptFoot; 47 CFX_FloatPoint m_ptFoot;
48 FX_FLOAT m_fWidth; 48 FX_FLOAT m_fWidth;
49 int32_t m_nDelay; 49 int32_t m_nDelay;
50 CFX_FloatRect m_rcInvalid; 50 CFX_FloatRect m_rcInvalid;
51 }; 51 };
52 52
53 #endif // FPDFSDK_PDFWINDOW_PWL_CARET_H_ 53 #endif // FPDFSDK_PDFWINDOW_PWL_CARET_H_
OLDNEW
« no previous file with comments | « fpdfsdk/jsapi/fxjs_v8.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698