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

Side by Side Diff: xfa/fde/fde_render.h

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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/fde/fde_iterator.cpp ('k') | xfa/fde/fde_render.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_FDE_FDE_RENDER_H_ 7 #ifndef XFA_FDE_FDE_RENDER_H_
8 #define XFA_FDE_FDE_RENDER_H_ 8 #define XFA_FDE_FDE_RENDER_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 11 matching lines...) Expand all
22 FDE_RENDERSTATUS_Paused, 22 FDE_RENDERSTATUS_Paused,
23 FDE_RENDERSTATUS_Done, 23 FDE_RENDERSTATUS_Done,
24 FDE_RENDERSTATUS_Failed, 24 FDE_RENDERSTATUS_Failed,
25 }; 25 };
26 26
27 class CFDE_RenderContext : public CFX_Target { 27 class CFDE_RenderContext : public CFX_Target {
28 public: 28 public:
29 CFDE_RenderContext(); 29 CFDE_RenderContext();
30 ~CFDE_RenderContext() override; 30 ~CFDE_RenderContext() override;
31 31
32 FX_BOOL StartRender(CFDE_RenderDevice* pRenderDevice, 32 bool StartRender(CFDE_RenderDevice* pRenderDevice,
33 IFDE_CanvasSet* pCanvasSet, 33 IFDE_CanvasSet* pCanvasSet,
34 const CFX_Matrix& tmDoc2Device); 34 const CFX_Matrix& tmDoc2Device);
35 FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } 35 FDE_RENDERSTATUS GetStatus() const { return m_eStatus; }
36 FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr); 36 FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr);
37 void StopRender(); 37 void StopRender();
38 void RenderText(IFDE_TextSet* pTextSet, FDE_TEXTEDITPIECE* pText); 38 void RenderText(IFDE_TextSet* pTextSet, FDE_TEXTEDITPIECE* pText);
39 39
40 protected: 40 protected:
41 FDE_RENDERSTATUS m_eStatus; 41 FDE_RENDERSTATUS m_eStatus;
42 CFDE_RenderDevice* m_pRenderDevice; 42 CFDE_RenderDevice* m_pRenderDevice;
43 CFX_Matrix m_Transform; 43 CFX_Matrix m_Transform;
44 std::vector<FXTEXT_CHARPOS> m_CharPos; 44 std::vector<FXTEXT_CHARPOS> m_CharPos;
45 std::unique_ptr<CFDE_Brush> m_pBrush; 45 std::unique_ptr<CFDE_Brush> m_pBrush;
46 std::unique_ptr<CFDE_VisualSetIterator> m_pIterator; 46 std::unique_ptr<CFDE_VisualSetIterator> m_pIterator;
47 }; 47 };
48 48
49 #endif // XFA_FDE_FDE_RENDER_H_ 49 #endif // XFA_FDE_FDE_RENDER_H_
OLDNEW
« no previous file with comments | « xfa/fde/fde_iterator.cpp ('k') | xfa/fde/fde_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698