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

Side by Side Diff: xfa/fde/fde_visualset.h

Issue 2037563002: Replace IFGAS_Font with underlying concrete type (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 6 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 | « xfa/fde/fde_render.cpp ('k') | xfa/fde/ifde_txtedtengine.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 XFA_FDE_FDE_VISUALSET_H_ 7 #ifndef XFA_FDE_FDE_VISUALSET_H_
8 #define XFA_FDE_FDE_VISUALSET_H_ 8 #define XFA_FDE_FDE_VISUALSET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 virtual FX_POSITION GetFirstPosition() = 0; 40 virtual FX_POSITION GetFirstPosition() = 0;
41 virtual FDE_TEXTEDITPIECE* GetNext(FX_POSITION& pos, 41 virtual FDE_TEXTEDITPIECE* GetNext(FX_POSITION& pos,
42 IFDE_VisualSet*& pVisualSet) = 0; 42 IFDE_VisualSet*& pVisualSet) = 0;
43 }; 43 };
44 44
45 class IFDE_TextSet : public IFDE_VisualSet { 45 class IFDE_TextSet : public IFDE_VisualSet {
46 public: 46 public:
47 virtual int32_t GetString(FDE_TEXTEDITPIECE* hText, 47 virtual int32_t GetString(FDE_TEXTEDITPIECE* hText,
48 CFX_WideString& wsText) = 0; 48 CFX_WideString& wsText) = 0;
49 virtual IFGAS_Font* GetFont() = 0; 49 virtual CFGAS_GEFont* GetFont() = 0;
50 virtual FX_FLOAT GetFontSize() = 0; 50 virtual FX_FLOAT GetFontSize() = 0;
51 virtual FX_ARGB GetFontColor() = 0; 51 virtual FX_ARGB GetFontColor() = 0;
52 virtual int32_t GetDisplayPos(FDE_TEXTEDITPIECE* hText, 52 virtual int32_t GetDisplayPos(FDE_TEXTEDITPIECE* hText,
53 FXTEXT_CHARPOS* pCharPos, 53 FXTEXT_CHARPOS* pCharPos,
54 FX_BOOL bCharCode = FALSE, 54 FX_BOOL bCharCode = FALSE,
55 CFX_WideString* pWSForms = nullptr) = 0; 55 CFX_WideString* pWSForms = nullptr) = 0;
56 virtual int32_t GetCharRects(const FDE_TEXTEDITPIECE* hText, 56 virtual int32_t GetCharRects(const FDE_TEXTEDITPIECE* hText,
57 CFX_RectFArray& rtArray, 57 CFX_RectFArray& rtArray,
58 FX_BOOL bbox) = 0; 58 FX_BOOL bbox) = 0;
59 }; 59 };
60 60
61 #endif // XFA_FDE_FDE_VISUALSET_H_ 61 #endif // XFA_FDE_FDE_VISUALSET_H_
OLDNEW
« no previous file with comments | « xfa/fde/fde_render.cpp ('k') | xfa/fde/ifde_txtedtengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698