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

Side by Side Diff: core/include/fxcrt/fx_basic.h

Issue 1701883004: Banish CFX_ByteStringArray and CFX_WideStringArray to the XFA side. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 4 years, 10 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/fpdfdoc/fpdf_doc.h ('k') | core/include/fxge/fx_font.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_FXCRT_FX_BASIC_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_
8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 CFX_BasicArray::RemoveAt(index, 1); 538 CFX_BasicArray::RemoveAt(index, 1);
539 } 539 }
540 540
541 void RemoveAll() { 541 void RemoveAll() {
542 for (int i = 0; i < m_nSize; i++) { 542 for (int i = 0; i < m_nSize; i++) {
543 ((ObjectClass*)GetDataPtr(i))->~ObjectClass(); 543 ((ObjectClass*)GetDataPtr(i))->~ObjectClass();
544 } 544 }
545 CFX_BasicArray::SetSize(0); 545 CFX_BasicArray::SetSize(0);
546 } 546 }
547 }; 547 };
548 #ifdef PDF_ENABLE_XFA
548 typedef CFX_ObjectArray<CFX_ByteString> CFX_ByteStringArray; 549 typedef CFX_ObjectArray<CFX_ByteString> CFX_ByteStringArray;
549 typedef CFX_ObjectArray<CFX_WideString> CFX_WideStringArray; 550 typedef CFX_ObjectArray<CFX_WideString> CFX_WideStringArray;
550 #ifdef PDF_ENABLE_XFA
551 class CFX_BaseSegmentedArray { 551 class CFX_BaseSegmentedArray {
552 public: 552 public:
553 CFX_BaseSegmentedArray(int unit_size = 1, 553 CFX_BaseSegmentedArray(int unit_size = 1,
554 int segment_units = 512, 554 int segment_units = 512,
555 int index_size = 8); 555 int index_size = 8);
556 556
557 ~CFX_BaseSegmentedArray(); 557 ~CFX_BaseSegmentedArray();
558 558
559 void SetUnitSize(int unit_size, int segment_units, int index_size = 8); 559 void SetUnitSize(int unit_size, int segment_units, int index_size = 8);
560 560
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 FX_FLOAT c; 1219 FX_FLOAT c;
1220 FX_FLOAT d; 1220 FX_FLOAT d;
1221 FX_FLOAT e; 1221 FX_FLOAT e;
1222 FX_FLOAT f; 1222 FX_FLOAT f;
1223 FX_FLOAT g; 1223 FX_FLOAT g;
1224 FX_FLOAT h; 1224 FX_FLOAT h;
1225 FX_FLOAT i; 1225 FX_FLOAT i;
1226 }; 1226 };
1227 1227
1228 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ 1228 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_doc.h ('k') | core/include/fxge/fx_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698