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

Side by Side Diff: core/fpdfapi/fpdf_page/include/cpdf_path.h

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 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_INCLUDE_CPDF_PATH_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
11 #include "core/fxge/include/cfx_pathdata.h" 11 #include "core/fxge/include/cfx_pathdata.h"
12 #include "core/fxge/include/fx_ge.h" 12 #include "core/fxge/include/cfx_fxgedevice.h"
dsinclair 2016/08/09 14:14:35 Sort includes
npm 2016/08/09 16:26:12 Done.
13 #include "core/fxge/include/cfx_renderdevice.h"
13 14
14 class CPDF_Path : public CFX_CountRef<CFX_PathData> { 15 class CPDF_Path : public CFX_CountRef<CFX_PathData> {
15 public: 16 public:
16 int GetPointCount() const { return m_pObject->m_PointCount; } 17 int GetPointCount() const { return m_pObject->m_PointCount; }
17 int GetFlag(int index) const { return m_pObject->m_pPoints[index].m_Flag; } 18 int GetFlag(int index) const { return m_pObject->m_pPoints[index].m_Flag; }
18 19
19 FX_FLOAT GetPointX(int index) const { 20 FX_FLOAT GetPointX(int index) const {
20 return m_pObject->m_pPoints[index].m_PointX; 21 return m_pObject->m_pPoints[index].m_PointX;
21 } 22 }
22 23
(...skipping 19 matching lines...) Expand all
42 43
43 void AppendRect(FX_FLOAT left, 44 void AppendRect(FX_FLOAT left,
44 FX_FLOAT bottom, 45 FX_FLOAT bottom,
45 FX_FLOAT right, 46 FX_FLOAT right,
46 FX_FLOAT top) { 47 FX_FLOAT top) {
47 m_pObject->AppendRect(left, bottom, right, top); 48 m_pObject->AppendRect(left, bottom, right, top);
48 } 49 }
49 }; 50 };
50 51
51 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ 52 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698