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

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

Issue 1513103002: Merge to XFA: Get rid of most uses of CFX_PtrArray. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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 | « no previous file | core/include/fpdfapi/fpdf_page.h » ('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_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 "core/include/fxcrt/fx_coordinates.h" 10 #include "core/include/fxcrt/fx_coordinates.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 343
344 FX_FLOAT GetNumber16(FX_DWORD index) const { return GetNumber(index); } 344 FX_FLOAT GetNumber16(FX_DWORD index) const { return GetNumber(index); }
345 345
346 void AddNumber16(FX_FLOAT value) { AddNumber(value); } 346 void AddNumber16(FX_FLOAT value) { AddNumber(value); }
347 347
348 FX_BOOL Identical(CPDF_Array* pOther) const; 348 FX_BOOL Identical(CPDF_Array* pOther) const;
349 349
350 protected: 350 protected:
351 ~CPDF_Array(); 351 ~CPDF_Array();
352 352
353 CFX_PtrArray m_Objects; 353 CFX_ArrayTemplate<CPDF_Object*> m_Objects;
354 friend class CPDF_Object; 354 friend class CPDF_Object;
355 }; 355 };
356 inline CPDF_Array* ToArray(CPDF_Object* obj) { 356 inline CPDF_Array* ToArray(CPDF_Object* obj) {
357 return obj ? obj->AsArray() : nullptr; 357 return obj ? obj->AsArray() : nullptr;
358 } 358 }
359 inline const CPDF_Array* ToArray(const CPDF_Object* obj) { 359 inline const CPDF_Array* ToArray(const CPDF_Object* obj) {
360 return obj ? obj->AsArray() : nullptr; 360 return obj ? obj->AsArray() : nullptr;
361 } 361 }
362 362
363 class CPDF_Dictionary : public CPDF_Object { 363 class CPDF_Dictionary : public CPDF_Object {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 625
626 protected: 626 protected:
627 CFX_MapPtrToPtr m_IndirectObjs; 627 CFX_MapPtrToPtr m_IndirectObjs;
628 628
629 CPDF_Parser* m_pParser; 629 CPDF_Parser* m_pParser;
630 630
631 FX_DWORD m_LastObjNum; 631 FX_DWORD m_LastObjNum;
632 }; 632 };
633 633
634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | core/include/fpdfapi/fpdf_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698