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

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

Issue 2386423004: Move core/fpdfapi/fpdf_page to core/fpdfapi/page (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fpdfapi/fpdf_page/cpdf_pathobject.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_pattern.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_
9
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_system.h"
12
13 class CPDF_Document;
14 class CPDF_Object;
15 class CPDF_ShadingPattern;
16 class CPDF_TilingPattern;
17
18 class CPDF_Pattern {
19 public:
20 enum PatternType { TILING = 1, SHADING };
21
22 virtual ~CPDF_Pattern();
23
24 virtual CPDF_TilingPattern* AsTilingPattern() = 0;
25 virtual CPDF_ShadingPattern* AsShadingPattern() = 0;
26
27 CPDF_Document* document() { return m_pDocument; }
28 CPDF_Object* pattern_obj() { return m_pPatternObj; }
29 CFX_Matrix* pattern_to_form() { return &m_Pattern2Form; }
30 const CFX_Matrix& parent_matrix() const { return m_ParentMatrix; }
31
32 protected:
33 CPDF_Pattern(PatternType type,
34 CPDF_Document* pDoc,
35 CPDF_Object* pObj,
36 const CFX_Matrix& parentMatrix);
37
38 const PatternType m_PatternType;
39 CPDF_Document* const m_pDocument;
40 CPDF_Object* const m_pPatternObj;
41 CFX_Matrix m_Pattern2Form;
42 const CFX_Matrix m_ParentMatrix;
43 };
44
45 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_pathobject.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_pattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698