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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1541703003: Use std::map as CPDF_Dictionary's underlying store. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments, rebase, fix embedder test Created 4 years, 11 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/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_create.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 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_FPDFDOC_FPDF_DOC_H_ 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 SaveDocument, 291 SaveDocument,
292 DocumentSaved, 292 DocumentSaved,
293 PrintDocument, 293 PrintDocument,
294 DocumentPrinted 294 DocumentPrinted
295 }; 295 };
296 296
297 FX_BOOL ActionExist(AActionType eType) const; 297 FX_BOOL ActionExist(AActionType eType) const;
298 298
299 CPDF_Action GetAction(AActionType eType) const; 299 CPDF_Action GetAction(AActionType eType) const;
300 300
301 FX_POSITION GetStartPos() const;
302
303 CPDF_Action GetNextAction(FX_POSITION& pos, AActionType& eType) const;
304
305 CPDF_Dictionary* m_pDict; 301 CPDF_Dictionary* m_pDict;
306 }; 302 };
307 class CPDF_DocJSActions { 303 class CPDF_DocJSActions {
308 public: 304 public:
309 explicit CPDF_DocJSActions(CPDF_Document* pDoc); 305 explicit CPDF_DocJSActions(CPDF_Document* pDoc);
310 306
311 int CountJSActions() const; 307 int CountJSActions() const;
312 308
313 CPDF_Action GetJSAction(int index, CFX_ByteString& csName) const; 309 CPDF_Action GetJSAction(int index, CFX_ByteString& csName) const;
314 310
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; 1140 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const;
1145 1141
1146 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; 1142 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const;
1147 1143
1148 CPDF_Dictionary* const m_pDict; 1144 CPDF_Dictionary* const m_pDict;
1149 }; 1145 };
1150 1146
1151 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); 1147 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath);
1152 1148
1153 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1149 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698