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

Side by Side Diff: xfa/fxfa/include/xfa_rendercontext.h

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: 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 | « xfa/fxfa/include/xfa_ffwidgethandler.h ('k') | xfa/fxfa/parser/cxfa_box.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 XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_
8 #define XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ 8 #define XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fxfa/include/fxfa.h" 12 #include "xfa/fxfa/include/fxfa.h"
13 13
14 class CXFA_RenderContext { 14 class CXFA_RenderContext {
15 public: 15 public:
16 CXFA_RenderContext(); 16 CXFA_RenderContext();
17 ~CXFA_RenderContext(); 17 ~CXFA_RenderContext();
18 18
19 int32_t StartRender(CXFA_FFPageView* pPageView, 19 int32_t StartRender(CXFA_FFPageView* pPageView,
20 CFX_Graphics* pGS, 20 CFX_Graphics* pGS,
21 const CFX_Matrix& matrix, 21 const CFX_Matrix& matrix,
22 const CXFA_RenderOptions& options); 22 const CXFA_RenderOptions& options);
23 int32_t DoRender(IFX_Pause* pPause = NULL); 23 int32_t DoRender(IFX_Pause* pPause = nullptr);
24 void StopRender(); 24 void StopRender();
25 25
26 protected: 26 protected:
27 std::unique_ptr<IXFA_WidgetIterator> m_pWidgetIterator; 27 std::unique_ptr<IXFA_WidgetIterator> m_pWidgetIterator;
28 CXFA_FFWidget* m_pWidget; 28 CXFA_FFWidget* m_pWidget;
29 CXFA_FFPageView* m_pPageView; 29 CXFA_FFPageView* m_pPageView;
30 CFX_Graphics* m_pGS; 30 CFX_Graphics* m_pGS;
31 CFX_Matrix m_matrix; 31 CFX_Matrix m_matrix;
32 CXFA_RenderOptions m_options; 32 CXFA_RenderOptions m_options;
33 uint32_t m_dwStatus; 33 uint32_t m_dwStatus;
34 CFX_RectF m_rtClipRect; 34 CFX_RectF m_rtClipRect;
35 }; 35 };
36 36
37 #endif // XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ 37 #endif // XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffwidgethandler.h ('k') | xfa/fxfa/parser/cxfa_box.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698