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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_pageobject.cpp

Issue 2060973002: Make code compile with clang_use_chrome_plugin (part I) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 6 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 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" 7 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h"
8 8
9 CPDF_PageObject::CPDF_PageObject() {} 9 CPDF_PageObject::CPDF_PageObject() {}
10 10
11 CPDF_PageObject::~CPDF_PageObject() {} 11 CPDF_PageObject::~CPDF_PageObject() {}
12 12
13 bool CPDF_PageObject::IsText() const {
14 return false;
15 }
16
17 bool CPDF_PageObject::IsPath() const {
18 return false;
19 }
20
21 bool CPDF_PageObject::IsImage() const {
22 return false;
23 }
24
25 bool CPDF_PageObject::IsShading() const {
26 return false;
27 }
28
29 bool CPDF_PageObject::IsForm() const {
30 return false;
31 }
32
33 CPDF_TextObject* CPDF_PageObject::AsText() {
34 return nullptr;
35 }
36
37 const CPDF_TextObject* CPDF_PageObject::AsText() const {
38 return nullptr;
39 }
40
41 CPDF_PathObject* CPDF_PageObject::AsPath() {
42 return nullptr;
43 }
44
45 const CPDF_PathObject* CPDF_PageObject::AsPath() const {
46 return nullptr;
47 }
48
49 CPDF_ImageObject* CPDF_PageObject::AsImage() {
50 return nullptr;
51 }
52
53 const CPDF_ImageObject* CPDF_PageObject::AsImage() const {
54 return nullptr;
55 }
56
57 CPDF_ShadingObject* CPDF_PageObject::AsShading() {
58 return nullptr;
59 }
60
61 const CPDF_ShadingObject* CPDF_PageObject::AsShading() const {
62 return nullptr;
63 }
64
65 CPDF_FormObject* CPDF_PageObject::AsForm() {
66 return nullptr;
67 }
68
69 const CPDF_FormObject* CPDF_PageObject::AsForm() const {
70 return nullptr;
71 }
72
13 void CPDF_PageObject::CopyData(const CPDF_PageObject* pSrc) { 73 void CPDF_PageObject::CopyData(const CPDF_PageObject* pSrc) {
14 CopyStates(*pSrc); 74 CopyStates(*pSrc);
15 m_Left = pSrc->m_Left; 75 m_Left = pSrc->m_Left;
16 m_Right = pSrc->m_Right; 76 m_Right = pSrc->m_Right;
17 m_Top = pSrc->m_Top; 77 m_Top = pSrc->m_Top;
18 m_Bottom = pSrc->m_Bottom; 78 m_Bottom = pSrc->m_Bottom;
19 } 79 }
20 80
21 void CPDF_PageObject::TransformClipPath(CFX_Matrix& matrix) { 81 void CPDF_PageObject::TransformClipPath(CFX_Matrix& matrix) {
22 if (m_ClipPath.IsNull()) { 82 if (m_ClipPath.IsNull()) {
(...skipping 11 matching lines...) Expand all
34 pGS->m_Matrix.Concat(matrix); 94 pGS->m_Matrix.Concat(matrix);
35 } 95 }
36 96
37 FX_RECT CPDF_PageObject::GetBBox(const CFX_Matrix* pMatrix) const { 97 FX_RECT CPDF_PageObject::GetBBox(const CFX_Matrix* pMatrix) const {
38 CFX_FloatRect rect(m_Left, m_Bottom, m_Right, m_Top); 98 CFX_FloatRect rect(m_Left, m_Bottom, m_Right, m_Top);
39 if (pMatrix) { 99 if (pMatrix) {
40 pMatrix->TransformRect(rect); 100 pMatrix->TransformRect(rect);
41 } 101 }
42 return rect.GetOutterRect(); 102 return rect.GetOutterRect();
43 } 103 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_pagemodule.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_pageobjectholder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698