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

Side by Side Diff: core/include/fpdfapi/fpdf_pageobj.h

Issue 1436573003: Use unique_ptr and initializer lists in various render files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 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 | « no previous file | core/src/fpdfapi/fpdf_render/fpdf_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 CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_
9 9
10 #include "../fxge/fx_ge.h" 10 #include "../fxge/fx_ge.h"
11 #include "fpdf_resource.h" 11 #include "fpdf_resource.h"
12 12
13 class CPDF_ClipPath;
14 class CPDF_ClipPathData;
15 class CPDF_ColorState;
16 class CPDF_ColorStateData;
17 class CPDF_ContentMark;
18 class CPDF_ContentMarkItem;
19 class CPDF_FormObject;
20 class CPDF_GeneralState;
21 class CPDF_GeneralStateData;
22 class CPDF_GraphicStates;
23 class CPDF_GraphState;
24 class CPDF_ImageObject;
25 class CPDF_PageObject;
13 class CPDF_Path; 26 class CPDF_Path;
14 class CPDF_ClipPathData; 27 class CPDF_PathObject;
15 class CPDF_ClipPath; 28 class CPDF_ShadingObject;
16 class CPDF_ColorStateData; 29 class CPDF_TextObject;
17 class CPDF_ColorState; 30 class CPDF_TextState;
18 class CPDF_GraphState;
19 class CPDF_TextStateData; 31 class CPDF_TextStateData;
20 class CPDF_TextState; 32 class CPDF_TransferFunc;
21 class CPDF_GeneralStateData; 33
22 class CPDF_GeneralState;
23 class CPDF_ContentMarkItem;
24 class CPDF_ContentMark;
25 class CPDF_GraphicStates;
26 class CPDF_PageObject;
27 class CPDF_TextObject;
28 class CPDF_PathObject;
29 class CPDF_ImageObject;
30 class CPDF_ShadingObject;
31 class CPDF_FormObject;
32 typedef CFX_PathData CPDF_PathData; 34 typedef CFX_PathData CPDF_PathData;
33 35
34 class CPDF_Path : public CFX_CountRef<CFX_PathData> { 36 class CPDF_Path : public CFX_CountRef<CFX_PathData> {
35 public: 37 public:
36 int GetPointCount() { return m_pObject->m_PointCount; } 38 int GetPointCount() { return m_pObject->m_PointCount; }
37 39
38 int GetFlag(int index) { return m_pObject->m_pPoints[index].m_Flag; } 40 int GetFlag(int index) { return m_pObject->m_pPoints[index].m_Flag; }
39 41
40 FX_FLOAT GetPointX(int index) { return m_pObject->m_pPoints[index].m_PointX; } 42 FX_FLOAT GetPointX(int index) { return m_pObject->m_pPoints[index].m_PointX; }
41 43
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; } 191 FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; }
190 192
191 FX_FLOAT GetFontSizeV() const; 193 FX_FLOAT GetFontSizeV() const;
192 194
193 FX_FLOAT GetFontSizeH() const; 195 FX_FLOAT GetFontSizeH() const;
194 196
195 FX_FLOAT GetBaselineAngle() const; 197 FX_FLOAT GetBaselineAngle() const;
196 198
197 FX_FLOAT GetShearAngle() const; 199 FX_FLOAT GetShearAngle() const;
198 }; 200 };
199 class CPDF_TransferFunc; 201
200 class CPDF_GeneralStateData { 202 class CPDF_GeneralStateData {
201 public: 203 public:
202 CPDF_GeneralStateData(); 204 CPDF_GeneralStateData();
203 205
204 CPDF_GeneralStateData(const CPDF_GeneralStateData& src); 206 CPDF_GeneralStateData(const CPDF_GeneralStateData& src);
205 ~CPDF_GeneralStateData(); 207 ~CPDF_GeneralStateData();
206 208
207 void SetBlendMode(const CFX_ByteStringC& blend_mode); 209 void SetBlendMode(const CFX_ByteStringC& blend_mode);
208 210
209 char m_BlendMode[16]; 211 char m_BlendMode[16];
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 561
560 CFX_AffineMatrix m_FormMatrix; 562 CFX_AffineMatrix m_FormMatrix;
561 563
562 void CalcBoundingBox(); 564 void CalcBoundingBox();
563 565
564 protected: 566 protected:
565 void CopyData(const CPDF_PageObject* pSrcObject) override; 567 void CopyData(const CPDF_PageObject* pSrcObject) override;
566 }; 568 };
567 569
568 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ 570 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_render/fpdf_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698