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

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

Issue 2477443002: Remove FX_BOOL from core (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 | « core/fpdfapi/page/cpdf_meshstream.cpp ('k') | core/fpdfapi/page/cpdf_pageobjectholder.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_PAGEOBJECTHOLDER_H_ 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECTHOLDER_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECTHOLDER_H_ 8 #define CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECTHOLDER_H_
9 9
10 #include "core/fpdfapi/page/cpdf_pageobjectlist.h" 10 #include "core/fpdfapi/page/cpdf_pageobjectlist.h"
(...skipping 16 matching lines...) Expand all
27 virtual ~CPDF_PageObjectHolder(); 27 virtual ~CPDF_PageObjectHolder();
28 28
29 void ContinueParse(IFX_Pause* pPause); 29 void ContinueParse(IFX_Pause* pPause);
30 bool IsParsed() const { return m_ParseState == CONTENT_PARSED; } 30 bool IsParsed() const { return m_ParseState == CONTENT_PARSED; }
31 31
32 CPDF_PageObjectList* GetPageObjectList() { return &m_PageObjectList; } 32 CPDF_PageObjectList* GetPageObjectList() { return &m_PageObjectList; }
33 const CPDF_PageObjectList* GetPageObjectList() const { 33 const CPDF_PageObjectList* GetPageObjectList() const {
34 return &m_PageObjectList; 34 return &m_PageObjectList;
35 } 35 }
36 36
37 FX_BOOL BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; } 37 bool BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; }
38 void SetBackgroundAlphaNeeded(FX_BOOL needed) { 38 void SetBackgroundAlphaNeeded(bool needed) {
39 m_bBackgroundAlphaNeeded = needed; 39 m_bBackgroundAlphaNeeded = needed;
40 } 40 }
41 41
42 FX_BOOL HasImageMask() const { return m_bHasImageMask; } 42 bool HasImageMask() const { return m_bHasImageMask; }
43 void SetHasImageMask(FX_BOOL value) { m_bHasImageMask = value; } 43 void SetHasImageMask(bool value) { m_bHasImageMask = value; }
44 44
45 void Transform(const CFX_Matrix& matrix); 45 void Transform(const CFX_Matrix& matrix);
46 CFX_FloatRect CalcBoundingBox() const; 46 CFX_FloatRect CalcBoundingBox() const;
47 47
48 CPDF_Dictionary* m_pFormDict; 48 CPDF_Dictionary* m_pFormDict;
49 CPDF_Stream* m_pFormStream; 49 CPDF_Stream* m_pFormStream;
50 CPDF_Document* m_pDocument; 50 CPDF_Document* m_pDocument;
51 CPDF_Dictionary* m_pPageResources; 51 CPDF_Dictionary* m_pPageResources;
52 CPDF_Dictionary* m_pResources; 52 CPDF_Dictionary* m_pResources;
53 CFX_FloatRect m_BBox; 53 CFX_FloatRect m_BBox;
54 int m_Transparency; 54 int m_Transparency;
55 55
56 protected: 56 protected:
57 enum ParseState { CONTENT_NOT_PARSED, CONTENT_PARSING, CONTENT_PARSED }; 57 enum ParseState { CONTENT_NOT_PARSED, CONTENT_PARSING, CONTENT_PARSED };
58 58
59 void LoadTransInfo(); 59 void LoadTransInfo();
60 60
61 FX_BOOL m_bBackgroundAlphaNeeded; 61 bool m_bBackgroundAlphaNeeded;
62 FX_BOOL m_bHasImageMask; 62 bool m_bHasImageMask;
63 ParseState m_ParseState; 63 ParseState m_ParseState;
64 std::unique_ptr<CPDF_ContentParser> m_pParser; 64 std::unique_ptr<CPDF_ContentParser> m_pParser;
65 CPDF_PageObjectList m_PageObjectList; 65 CPDF_PageObjectList m_PageObjectList;
66 }; 66 };
67 67
68 #endif // CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECTHOLDER_H_ 68 #endif // CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECTHOLDER_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_meshstream.cpp ('k') | core/fpdfapi/page/cpdf_pageobjectholder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698