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

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

Issue 1879683002: Remove CPDF_Object::GetConstString and overrides (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Move bLuminosity down. Created 4 years, 8 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_PARSER_INCLUDE_CPDF_ARRAY_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_ARRAY_H_
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_ARRAY_H_ 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_ARRAY_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const override; 23 CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const override;
24 CPDF_Array* GetArray() const override; 24 CPDF_Array* GetArray() const override;
25 bool IsArray() const override; 25 bool IsArray() const override;
26 CPDF_Array* AsArray() override; 26 CPDF_Array* AsArray() override;
27 const CPDF_Array* AsArray() const override; 27 const CPDF_Array* AsArray() const override;
28 28
29 size_t GetCount() const { return m_Objects.size(); } 29 size_t GetCount() const { return m_Objects.size(); }
30 CPDF_Object* GetObjectAt(size_t index) const; 30 CPDF_Object* GetObjectAt(size_t index) const;
31 CPDF_Object* GetDirectObjectAt(size_t index) const; 31 CPDF_Object* GetDirectObjectAt(size_t index) const;
32 CFX_ByteString GetStringAt(size_t index) const; 32 CFX_ByteString GetStringAt(size_t index) const;
33 CFX_ByteStringC GetConstStringAt(size_t index) const;
34 int GetIntegerAt(size_t index) const; 33 int GetIntegerAt(size_t index) const;
35 FX_FLOAT GetNumberAt(size_t index) const; 34 FX_FLOAT GetNumberAt(size_t index) const;
36 CPDF_Dictionary* GetDictAt(size_t index) const; 35 CPDF_Dictionary* GetDictAt(size_t index) const;
37 CPDF_Stream* GetStreamAt(size_t index) const; 36 CPDF_Stream* GetStreamAt(size_t index) const;
38 CPDF_Array* GetArrayAt(size_t index) const; 37 CPDF_Array* GetArrayAt(size_t index) const;
39 FX_FLOAT GetFloatAt(size_t index) const { return GetNumberAt(index); } 38 FX_FLOAT GetFloatAt(size_t index) const { return GetNumberAt(index); }
40 CFX_Matrix GetMatrix(); 39 CFX_Matrix GetMatrix();
41 CFX_FloatRect GetRect(); 40 CFX_FloatRect GetRect();
42 41
43 void SetAt(size_t index, 42 void SetAt(size_t index,
(...skipping 14 matching lines...) Expand all
58 AddReference(pDoc, obj->GetObjNum()); 57 AddReference(pDoc, obj->GetObjNum());
59 } 58 }
60 59
61 protected: 60 protected:
62 ~CPDF_Array() override; 61 ~CPDF_Array() override;
63 62
64 std::vector<CPDF_Object*> m_Objects; 63 std::vector<CPDF_Object*> m_Objects;
65 }; 64 };
66 65
67 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_ARRAY_H_ 66 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_ARRAY_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp ('k') | core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698