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

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

Issue 1289703003: FX_CMapDwordToDword considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase, remove if(). Created 5 years, 4 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 | « no previous file | core/src/fpdfapi/fpdf_font/font_int.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 "fx_memory.h" 10 #include "fx_memory.h"
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 FX_DWORD HashKey(void* key) const; 629 FX_DWORD HashKey(void* key) const;
630 630
631 CAssoc* NewAssoc(); 631 CAssoc* NewAssoc();
632 632
633 void FreeAssoc(CAssoc* pAssoc); 633 void FreeAssoc(CAssoc* pAssoc);
634 634
635 CAssoc* GetAssocAt(void* key, FX_DWORD& hash) const; 635 CAssoc* GetAssocAt(void* key, FX_DWORD& hash) const;
636 }; 636 };
637 637
638 class CFX_CMapDWordToDWord {
639 public:
640 FX_BOOL Lookup(FX_DWORD key, FX_DWORD& value) const;
641
642 void SetAt(FX_DWORD key, FX_DWORD value);
643
644 void EstimateSize(FX_DWORD size, FX_DWORD grow_by);
645
646 FX_POSITION GetStartPosition() const;
647
648 void GetNextAssoc(FX_POSITION& pos, FX_DWORD& key, FX_DWORD& value) const;
649
650 protected:
651 CFX_BinaryBuf m_Buffer;
652 };
653 class CFX_CMapByteStringToPtr { 638 class CFX_CMapByteStringToPtr {
654 public: 639 public:
655 CFX_CMapByteStringToPtr(); 640 CFX_CMapByteStringToPtr();
656 641
657 ~CFX_CMapByteStringToPtr(); 642 ~CFX_CMapByteStringToPtr();
658 643
659 void RemoveAll(); 644 void RemoveAll();
660 645
661 FX_POSITION GetStartPosition() const; 646 FX_POSITION GetStartPosition() const;
662 647
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 FX_FLOAT c; 1139 FX_FLOAT c;
1155 FX_FLOAT d; 1140 FX_FLOAT d;
1156 FX_FLOAT e; 1141 FX_FLOAT e;
1157 FX_FLOAT f; 1142 FX_FLOAT f;
1158 FX_FLOAT g; 1143 FX_FLOAT g;
1159 FX_FLOAT h; 1144 FX_FLOAT h;
1160 FX_FLOAT i; 1145 FX_FLOAT i;
1161 }; 1146 };
1162 1147
1163 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ 1148 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_font/font_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698