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

Side by Side Diff: core/fpdfapi/page/cpdf_path.cpp

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_path.h ('k') | core/fpdfapi/page/cpdf_pathobject.h » ('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 #include "core/fpdfapi/page/cpdf_path.h" 7 #include "core/fpdfapi/page/cpdf_path.h"
8 8
9 CPDF_Path::CPDF_Path() {} 9 CPDF_Path::CPDF_Path() {}
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 CFX_FloatRect CPDF_Path::GetBoundingBox() const { 43 CFX_FloatRect CPDF_Path::GetBoundingBox() const {
44 return m_Ref.GetObject()->GetBoundingBox(); 44 return m_Ref.GetObject()->GetBoundingBox();
45 } 45 }
46 46
47 CFX_FloatRect CPDF_Path::GetBoundingBox(FX_FLOAT line_width, 47 CFX_FloatRect CPDF_Path::GetBoundingBox(FX_FLOAT line_width,
48 FX_FLOAT miter_limit) const { 48 FX_FLOAT miter_limit) const {
49 return m_Ref.GetObject()->GetBoundingBox(line_width, miter_limit); 49 return m_Ref.GetObject()->GetBoundingBox(line_width, miter_limit);
50 } 50 }
51 51
52 FX_BOOL CPDF_Path::IsRect() const { 52 bool CPDF_Path::IsRect() const {
53 return m_Ref.GetObject()->IsRect(); 53 return m_Ref.GetObject()->IsRect();
54 } 54 }
55 55
56 void CPDF_Path::Transform(const CFX_Matrix* pMatrix) { 56 void CPDF_Path::Transform(const CFX_Matrix* pMatrix) {
57 m_Ref.GetPrivateCopy()->Transform(pMatrix); 57 m_Ref.GetPrivateCopy()->Transform(pMatrix);
58 } 58 }
59 59
60 void CPDF_Path::Append(const CPDF_Path& other, const CFX_Matrix* pMatrix) { 60 void CPDF_Path::Append(const CPDF_Path& other, const CFX_Matrix* pMatrix) {
61 m_Ref.GetPrivateCopy()->Append(other.GetObject(), pMatrix); 61 m_Ref.GetPrivateCopy()->Append(other.GetObject(), pMatrix);
62 } 62 }
63 63
64 void CPDF_Path::Append(const CFX_PathData* pData, const CFX_Matrix* pMatrix) { 64 void CPDF_Path::Append(const CFX_PathData* pData, const CFX_Matrix* pMatrix) {
65 m_Ref.GetPrivateCopy()->Append(pData, pMatrix); 65 m_Ref.GetPrivateCopy()->Append(pData, pMatrix);
66 } 66 }
67 67
68 void CPDF_Path::AppendRect(FX_FLOAT left, 68 void CPDF_Path::AppendRect(FX_FLOAT left,
69 FX_FLOAT bottom, 69 FX_FLOAT bottom,
70 FX_FLOAT right, 70 FX_FLOAT right,
71 FX_FLOAT top) { 71 FX_FLOAT top) {
72 m_Ref.GetPrivateCopy()->AppendRect(left, bottom, right, top); 72 m_Ref.GetPrivateCopy()->AppendRect(left, bottom, right, top);
73 } 73 }
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_path.h ('k') | core/fpdfapi/page/cpdf_pathobject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698