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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_tilingpattern.h

Issue 1918113002: Clean up CPDF_Page. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: delete more dead code Created 4 years, 8 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
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_FPDF_PAGE_CPDF_TILINGPATTERN_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_TILINGPATTERN_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_TILINGPATTERN_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_TILINGPATTERN_H_
9 9
10 #include <memory>
11
10 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" 12 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h"
11 #include "core/fxcrt/include/fx_coordinates.h" 13 #include "core/fxcrt/include/fx_coordinates.h"
12 #include "core/fxcrt/include/fx_system.h" 14 #include "core/fxcrt/include/fx_system.h"
13 15
14 class CPDF_Document; 16 class CPDF_Document;
15 class CPDF_Form; 17 class CPDF_Form;
16 class CPDF_Object; 18 class CPDF_Object;
17 19
18 class CPDF_TilingPattern : public CPDF_Pattern { 20 class CPDF_TilingPattern : public CPDF_Pattern {
19 public: 21 public:
20 CPDF_TilingPattern(CPDF_Document* pDoc, 22 CPDF_TilingPattern(CPDF_Document* pDoc,
21 CPDF_Object* pPatternObj, 23 CPDF_Object* pPatternObj,
22 const CFX_Matrix* parentMatrix); 24 const CFX_Matrix* parentMatrix);
23 ~CPDF_TilingPattern() override; 25 ~CPDF_TilingPattern() override;
24 26
25 FX_BOOL Load(); 27 FX_BOOL Load();
26 28
27 FX_BOOL m_bColored; 29 bool colored() const { return m_bColored; }
30 const CFX_FloatRect& bbox() const { return m_BBox; }
31 FX_FLOAT x_step() const { return m_XStep; }
32 FX_FLOAT y_step() const { return m_YStep; }
33 CPDF_Form* form() const { return m_pForm.get(); }
34
35 private:
36 bool m_bColored;
28 CFX_FloatRect m_BBox; 37 CFX_FloatRect m_BBox;
29 FX_FLOAT m_XStep; 38 FX_FLOAT m_XStep;
30 FX_FLOAT m_YStep; 39 FX_FLOAT m_YStep;
31 CPDF_Form* m_pForm; 40 std::unique_ptr<CPDF_Form> m_pForm;
32 }; 41 };
33 42
34 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_TILINGPATTERN_H_ 43 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_TILINGPATTERN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698