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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1287193005: Use override in more classes in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits, rebase 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 | « fpdfsdk/include/fsdk_define.h ('k') | fpdfsdk/include/fsdk_rendercontext.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 FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 FX_BOOL m_bOnWidget; 350 FX_BOOL m_bOnWidget;
351 FX_BOOL m_bValid; 351 FX_BOOL m_bValid;
352 FX_BOOL m_bLocked; 352 FX_BOOL m_bLocked;
353 FX_BOOL m_bTakeOverPage; 353 FX_BOOL m_bTakeOverPage;
354 }; 354 };
355 355
356 template <class TYPE> 356 template <class TYPE>
357 class CGW_ArrayTemplate : public CFX_ArrayTemplate<TYPE> { 357 class CGW_ArrayTemplate : public CFX_ArrayTemplate<TYPE> {
358 public: 358 public:
359 CGW_ArrayTemplate() {} 359 CGW_ArrayTemplate() {}
360 virtual ~CGW_ArrayTemplate() {} 360 ~CGW_ArrayTemplate() {}
361 361
362 typedef int (*LP_COMPARE)(TYPE p1, TYPE p2); 362 typedef int (*LP_COMPARE)(TYPE p1, TYPE p2);
363 363
364 void Sort(LP_COMPARE pCompare, FX_BOOL bAscent = TRUE) { 364 void Sort(LP_COMPARE pCompare, FX_BOOL bAscent = TRUE) {
365 int nSize = this->GetSize(); 365 int nSize = this->GetSize();
366 QuickSort(0, nSize - 1, bAscent, pCompare); 366 QuickSort(0, nSize - 1, bAscent, pCompare);
367 } 367 }
368 368
369 private: 369 private:
370 void QuickSort(FX_UINT nStartPos, 370 void QuickSort(FX_UINT nStartPos,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 } 420 }
421 421
422 if (nStartPos < m) 422 if (nStartPos < m)
423 QuickSort(nStartPos, m, bAscend, pCompare); 423 QuickSort(nStartPos, m, bAscend, pCompare);
424 if (nStopPos > m) 424 if (nStopPos > m)
425 QuickSort(m, nStopPos, bAscend, pCompare); 425 QuickSort(m, nStopPos, bAscend, pCompare);
426 } 426 }
427 }; 427 };
428 428
429 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 429 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_define.h ('k') | fpdfsdk/include/fsdk_rendercontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698