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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Edit.cpp

Issue 2594153003: Remove CFX_ArrayTemplate, use unique_ptr in fpdfsdk/pdfwindow (Closed)
Patch Set: Fix compilation Created 3 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 | « fpdfsdk/pdfwindow/PWL_Edit.h ('k') | fpdfsdk/pdfwindow/PWL_FontMap.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 #include "fpdfsdk/pdfwindow/PWL_Edit.h" 7 #include "fpdfsdk/pdfwindow/PWL_Edit.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 break; 868 break;
869 869
870 wpStart = pIterator->GetAt(); 870 wpStart = pIterator->GetAt();
871 } while (pIterator->PrevWord()); 871 } while (pIterator->PrevWord());
872 } 872 }
873 873
874 range.Set(wpStart, wpEnd); 874 range.Set(wpStart, wpEnd);
875 return range; 875 return range;
876 } 876 }
877 877
878 void CPWL_Edit::GeneratePageObjects( 878 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder,
879 CPDF_PageObjectHolder* pObjectHolder, 879 const CFX_FloatPoint& ptOffset,
880 const CFX_FloatPoint& ptOffset, 880 std::vector<CPDF_TextObject*>* ObjArray) {
881 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) {
882 CFX_Edit::GeneratePageObjects( 881 CFX_Edit::GeneratePageObjects(
883 pObjectHolder, m_pEdit.get(), ptOffset, nullptr, 882 pObjectHolder, m_pEdit.get(), ptOffset, nullptr,
884 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), 883 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()),
885 ObjArray); 884 ObjArray);
886 } 885 }
887 886
888 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, 887 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder,
889 const CFX_FloatPoint& ptOffset) { 888 const CFX_FloatPoint& ptOffset) {
890 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; 889 std::vector<CPDF_TextObject*> ObjArray;
891 CFX_Edit::GeneratePageObjects( 890 CFX_Edit::GeneratePageObjects(
892 pObjectHolder, m_pEdit.get(), ptOffset, nullptr, 891 pObjectHolder, m_pEdit.get(), ptOffset, nullptr,
893 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), 892 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()),
894 ObjArray); 893 &ObjArray);
895 } 894 }
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Edit.h ('k') | fpdfsdk/pdfwindow/PWL_FontMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698