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

Side by Side Diff: core/fpdfapi/fpdf_parser/include/cpdf_object.h

Issue 2001933002: Delete CPDF_Object::IsModified(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp ('k') | no next file » | 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_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 24 matching lines...) Expand all
35 REFERENCE 35 REFERENCE
36 }; 36 };
37 37
38 virtual Type GetType() const = 0; 38 virtual Type GetType() const = 0;
39 uint32_t GetObjNum() const { return m_ObjNum; } 39 uint32_t GetObjNum() const { return m_ObjNum; }
40 uint32_t GetGenNum() const { return m_GenNum; } 40 uint32_t GetGenNum() const { return m_GenNum; }
41 41
42 virtual CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const = 0; 42 virtual CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const = 0;
43 virtual CPDF_Object* GetDirect() const; 43 virtual CPDF_Object* GetDirect() const;
44 44
45 FX_BOOL IsModified() const { return FALSE; }
46 void Release(); 45 void Release();
47 46
48 virtual CFX_ByteString GetString() const; 47 virtual CFX_ByteString GetString() const;
49 virtual CFX_WideString GetUnicodeText() const; 48 virtual CFX_WideString GetUnicodeText() const;
50 virtual FX_FLOAT GetNumber() const; 49 virtual FX_FLOAT GetNumber() const;
51 virtual int GetInteger() const; 50 virtual int GetInteger() const;
52 virtual CPDF_Dictionary* GetDict() const; 51 virtual CPDF_Dictionary* GetDict() const;
53 52
54 virtual void SetString(const CFX_ByteString& str); 53 virtual void SetString(const CFX_ByteString& str);
55 54
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 150
152 inline CPDF_Stream* ToStream(CPDF_Object* obj) { 151 inline CPDF_Stream* ToStream(CPDF_Object* obj) {
153 return obj ? obj->AsStream() : nullptr; 152 return obj ? obj->AsStream() : nullptr;
154 } 153 }
155 154
156 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { 155 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) {
157 return obj ? obj->AsStream() : nullptr; 156 return obj ? obj->AsStream() : nullptr;
158 } 157 }
159 158
160 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ 159 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698