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

Side by Side Diff: core/include/fpdfapi/fpdf_objects.h

Issue 1277043002: XFA: clang-format all pdfium code, again. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
9 9
10 #include "../fxcrt/fx_coordinates.h" 10 #include "../fxcrt/fx_coordinates.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 friend class CPDF_IndirectObjects; 94 friend class CPDF_IndirectObjects;
95 friend class CPDF_Parser; 95 friend class CPDF_Parser;
96 friend class CPDF_SyntaxParser; 96 friend class CPDF_SyntaxParser;
97 97
98 private: 98 private:
99 CPDF_Object(const CPDF_Object& src) {} 99 CPDF_Object(const CPDF_Object& src) {}
100 CPDF_Object* CloneInternal(FX_BOOL bDirect, CFX_MapPtrToPtr* visited) const; 100 CPDF_Object* CloneInternal(FX_BOOL bDirect, CFX_MapPtrToPtr* visited) const;
101 }; 101 };
102 class CPDF_Boolean : public CPDF_Object { 102 class CPDF_Boolean : public CPDF_Object {
103 public: 103 public:
104 static CPDF_Boolean* Create(FX_BOOL value) { 104 static CPDF_Boolean* Create(FX_BOOL value) { return new CPDF_Boolean(value); }
105 return new CPDF_Boolean(value);
106 }
107 105
108 CPDF_Boolean() : CPDF_Object(PDFOBJ_BOOLEAN), m_bValue(false) {} 106 CPDF_Boolean() : CPDF_Object(PDFOBJ_BOOLEAN), m_bValue(false) {}
109 CPDF_Boolean(FX_BOOL value) : CPDF_Object(PDFOBJ_BOOLEAN), m_bValue(value) {} 107 CPDF_Boolean(FX_BOOL value) : CPDF_Object(PDFOBJ_BOOLEAN), m_bValue(value) {}
110 108
111 FX_BOOL Identical(CPDF_Boolean* pOther) const { 109 FX_BOOL Identical(CPDF_Boolean* pOther) const {
112 return m_bValue == pOther->m_bValue; 110 return m_bValue == pOther->m_bValue;
113 } 111 }
114 112
115 protected: 113 protected:
116 FX_BOOL m_bValue; 114 FX_BOOL m_bValue;
117 friend class CPDF_Object; 115 friend class CPDF_Object;
118 }; 116 };
119 class CPDF_Number : public CPDF_Object { 117 class CPDF_Number : public CPDF_Object {
120 public: 118 public:
121 static CPDF_Number* Create(int value) { return new CPDF_Number(value); } 119 static CPDF_Number* Create(int value) { return new CPDF_Number(value); }
122 120
123 static CPDF_Number* Create(FX_FLOAT value) { 121 static CPDF_Number* Create(FX_FLOAT value) { return new CPDF_Number(value); }
124 return new CPDF_Number(value);
125 }
126 122
127 static CPDF_Number* Create(const CFX_ByteStringC& str) { 123 static CPDF_Number* Create(const CFX_ByteStringC& str) {
128 return new CPDF_Number(str); 124 return new CPDF_Number(str);
129 } 125 }
130 126
131 static CPDF_Number* Create(FX_BOOL bInteger, void* pData) { 127 static CPDF_Number* Create(FX_BOOL bInteger, void* pData) {
132 return new CPDF_Number(bInteger, pData); 128 return new CPDF_Number(bInteger, pData);
133 } 129 }
134 130
135 CPDF_Number() : CPDF_Object(PDFOBJ_NUMBER), m_bInteger(false), m_Integer(0) {} 131 CPDF_Number() : CPDF_Object(PDFOBJ_NUMBER), m_bInteger(false), m_Integer(0) {}
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 602
607 protected: 603 protected:
608 CFX_MapPtrToPtr m_IndirectObjs; 604 CFX_MapPtrToPtr m_IndirectObjs;
609 605
610 CPDF_Parser* m_pParser; 606 CPDF_Parser* m_pParser;
611 607
612 FX_DWORD m_LastObjNum; 608 FX_DWORD m_LastObjNum;
613 }; 609 };
614 610
615 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 611 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698