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

Side by Side Diff: core/fpdfapi/page/cpdf_pathobject.h

Issue 2517163003: Use more unique_ptrs in CPDF_Image. (Closed)
Patch Set: rebase Created 4 years 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 | « core/fpdfapi/page/cpdf_pageobject.h ('k') | core/fpdfapi/page/cpdf_pathobject.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FPDFAPI_PAGE_CPDF_PATHOBJECT_H_ 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_PATHOBJECT_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_PATHOBJECT_H_ 8 #define CORE_FPDFAPI_PAGE_CPDF_PATHOBJECT_H_
9 9
10 #include "core/fpdfapi/page/cpdf_pageobject.h" 10 #include "core/fpdfapi/page/cpdf_pageobject.h"
11 #include "core/fpdfapi/page/cpdf_path.h" 11 #include "core/fpdfapi/page/cpdf_path.h"
12 #include "core/fxcrt/fx_coordinates.h" 12 #include "core/fxcrt/fx_coordinates.h"
13 #include "core/fxcrt/fx_system.h" 13 #include "core/fxcrt/fx_system.h"
14 14
15 class CPDF_PathObject : public CPDF_PageObject { 15 class CPDF_PathObject : public CPDF_PageObject {
16 public: 16 public:
17 CPDF_PathObject(); 17 CPDF_PathObject();
18 ~CPDF_PathObject() override; 18 ~CPDF_PathObject() override;
19 19
20 // CPDF_PageObject 20 // CPDF_PageObject
21 CPDF_PathObject* Clone() const override;
22 Type GetType() const override; 21 Type GetType() const override;
23 void Transform(const CFX_Matrix& maxtrix) override; 22 void Transform(const CFX_Matrix& maxtrix) override;
24 bool IsPath() const override; 23 bool IsPath() const override;
25 CPDF_PathObject* AsPath() override; 24 CPDF_PathObject* AsPath() override;
26 const CPDF_PathObject* AsPath() const override; 25 const CPDF_PathObject* AsPath() const override;
27 26
28 void CalcBoundingBox(); 27 void CalcBoundingBox();
29 28
30 CPDF_Path m_Path; 29 CPDF_Path m_Path;
31 int m_FillType; 30 int m_FillType;
32 bool m_bStroke; 31 bool m_bStroke;
33 CFX_Matrix m_Matrix; 32 CFX_Matrix m_Matrix;
34 }; 33 };
35 34
36 #endif // CORE_FPDFAPI_PAGE_CPDF_PATHOBJECT_H_ 35 #endif // CORE_FPDFAPI_PAGE_CPDF_PATHOBJECT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_pageobject.h ('k') | core/fpdfapi/page/cpdf_pathobject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698