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

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

Issue 1841173002: Rename GetElementValue() to GetDirectObject{By,At}(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix test name 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
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_array.h ('k') | core/fpdfapi/fpdf_render/fpdf_render.cpp » ('j') | 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_DICTIONARY_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DICTIONARY_H_
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DICTIONARY_H_ 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DICTIONARY_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 13 matching lines...) Expand all
24 24
25 // CPDF_Object. 25 // CPDF_Object.
26 Type GetType() const override; 26 Type GetType() const override;
27 CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const override; 27 CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const override;
28 CPDF_Dictionary* GetDict() const override; 28 CPDF_Dictionary* GetDict() const override;
29 bool IsDictionary() const override; 29 bool IsDictionary() const override;
30 CPDF_Dictionary* AsDictionary() override; 30 CPDF_Dictionary* AsDictionary() override;
31 const CPDF_Dictionary* AsDictionary() const override; 31 const CPDF_Dictionary* AsDictionary() const override;
32 32
33 size_t GetCount() const { return m_Map.size(); } 33 size_t GetCount() const { return m_Map.size(); }
34 CPDF_Object* GetElement(const CFX_ByteStringC& key) const; 34 CPDF_Object* GetObjectBy(const CFX_ByteStringC& key) const;
35 CPDF_Object* GetElementValue(const CFX_ByteStringC& key) const; 35 CPDF_Object* GetDirectObjectBy(const CFX_ByteStringC& key) const;
36 CFX_ByteString GetStringBy(const CFX_ByteStringC& key) const; 36 CFX_ByteString GetStringBy(const CFX_ByteStringC& key) const;
37 CFX_ByteStringC GetConstStringBy(const CFX_ByteStringC& key) const; 37 CFX_ByteStringC GetConstStringBy(const CFX_ByteStringC& key) const;
38 CFX_ByteString GetStringBy(const CFX_ByteStringC& key, 38 CFX_ByteString GetStringBy(const CFX_ByteStringC& key,
39 const CFX_ByteStringC& default_str) const; 39 const CFX_ByteStringC& default_str) const;
40 CFX_ByteStringC GetConstStringBy(const CFX_ByteStringC& key, 40 CFX_ByteStringC GetConstStringBy(const CFX_ByteStringC& key,
41 const CFX_ByteStringC& default_str) const; 41 const CFX_ByteStringC& default_str) const;
42 CFX_WideString GetUnicodeTextBy(const CFX_ByteStringC& key) const; 42 CFX_WideString GetUnicodeTextBy(const CFX_ByteStringC& key) const;
43 int GetIntegerBy(const CFX_ByteStringC& key) const; 43 int GetIntegerBy(const CFX_ByteStringC& key) const;
44 int GetIntegerBy(const CFX_ByteStringC& key, int default_int) const; 44 int GetIntegerBy(const CFX_ByteStringC& key, int default_int) const;
45 FX_BOOL GetBooleanBy(const CFX_ByteStringC& key, 45 FX_BOOL GetBooleanBy(const CFX_ByteStringC& key,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const_iterator begin() const { return m_Map.begin(); } 90 const_iterator begin() const { return m_Map.begin(); }
91 const_iterator end() const { return m_Map.end(); } 91 const_iterator end() const { return m_Map.end(); }
92 92
93 protected: 93 protected:
94 ~CPDF_Dictionary() override; 94 ~CPDF_Dictionary() override;
95 95
96 std::map<CFX_ByteString, CPDF_Object*> m_Map; 96 std::map<CFX_ByteString, CPDF_Object*> m_Map;
97 }; 97 };
98 98
99 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DICTIONARY_H_ 99 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DICTIONARY_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_array.h ('k') | core/fpdfapi/fpdf_render/fpdf_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698