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

Side by Side Diff: xfa/fgas/layout/fgas_unicode.h

Issue 2609423003: Properly ref-count CFGAS_GEFont with CFX_RetainPtr. (Closed)
Patch Set: comments 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
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 XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ 7 #ifndef XFA_FGAS_LAYOUT_FGAS_UNICODE_H_
8 #define XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ 8 #define XFA_FGAS_LAYOUT_FGAS_UNICODE_H_
9 9
10 #include "xfa/fgas/crt/fgas_utils.h" 10 #include "xfa/fgas/crt/fgas_utils.h"
11 #include "xfa/fgas/font/cfgas_fontmgr.h" 11 #include "xfa/fgas/font/cfgas_fontmgr.h"
12 12
13 struct FX_TPO { 13 struct FX_TPO {
14 int32_t index; 14 int32_t index;
15 int32_t pos; 15 int32_t pos;
16 }; 16 };
17 typedef CFX_MassArrayTemplate<FX_TPO> CFX_TPOArray; 17 typedef CFX_MassArrayTemplate<FX_TPO> CFX_TPOArray;
18 18
19 void FX_TEXTLAYOUT_PieceSort(CFX_TPOArray& tpos, int32_t iStart, int32_t iEnd); 19 void FX_TEXTLAYOUT_PieceSort(CFX_TPOArray& tpos, int32_t iStart, int32_t iEnd);
20 20
21 typedef bool (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, 21 typedef bool (*FX_AdjustCharDisplayPos)(
22 bool bMBCSCode, 22 FX_WCHAR wch,
23 CFGAS_GEFont* pFont, 23 bool bMBCSCode,
24 FX_FLOAT fFontSize, 24 const CFX_RetainPtr<CFGAS_GEFont>& pFont,
25 bool bVertical, 25 FX_FLOAT fFontSize,
26 CFX_PointF& ptOffset); 26 bool bVertical,
27 CFX_PointF& ptOffset);
27 28
28 #endif // XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ 29 #endif // XFA_FGAS_LAYOUT_FGAS_UNICODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698