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

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

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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
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"
11 #include "core/fxcrt/include/fx_system.h" 11 #include "core/fxcrt/include/fx_system.h"
12 #include "core/fxge/include/fx_dib.h" 12 #include "core/fxge/include/fx_dib.h"
13 #include "xfa/fde/cfde_path.h" 13 #include "xfa/fde/cfde_path.h"
14 #include "xfa/fde/fde_object.h" 14 #include "xfa/fde/fde_object.h"
15 #include "xfa/fgas/crt/fgas_memory.h" 15 #include "xfa/fgas/crt/fgas_memory.h"
16 #include "xfa/fgas/font/fgas_font.h" 16 #include "xfa/fgas/font/fgas_font.h"
17 17
18 struct FXTEXT_CHARPOS;
19
18 enum FDE_VISUALOBJTYPE { 20 enum FDE_VISUALOBJTYPE {
19 FDE_VISUALOBJ_Canvas = 0x00, 21 FDE_VISUALOBJ_Canvas = 0x00,
20 FDE_VISUALOBJ_Text = 0x01 22 FDE_VISUALOBJ_Text = 0x01
21 }; 23 };
22 24
23 struct FDE_TEXTEDITPIECE { 25 struct FDE_TEXTEDITPIECE {
24 int32_t nStart; 26 int32_t nStart;
25 int32_t nCount; 27 int32_t nCount;
26 int32_t nBidiLevel; 28 int32_t nBidiLevel;
27 CFX_RectF rtPiece; 29 CFX_RectF rtPiece;
(...skipping 24 matching lines...) Expand all
52 virtual int32_t GetDisplayPos(FDE_TEXTEDITPIECE* hText, 54 virtual int32_t GetDisplayPos(FDE_TEXTEDITPIECE* hText,
53 FXTEXT_CHARPOS* pCharPos, 55 FXTEXT_CHARPOS* pCharPos,
54 FX_BOOL bCharCode = FALSE, 56 FX_BOOL bCharCode = FALSE,
55 CFX_WideString* pWSForms = nullptr) = 0; 57 CFX_WideString* pWSForms = nullptr) = 0;
56 virtual int32_t GetCharRects(const FDE_TEXTEDITPIECE* hText, 58 virtual int32_t GetCharRects(const FDE_TEXTEDITPIECE* hText,
57 CFX_RectFArray& rtArray, 59 CFX_RectFArray& rtArray,
58 FX_BOOL bbox) = 0; 60 FX_BOOL bbox) = 0;
59 }; 61 };
60 62
61 #endif // XFA_FDE_FDE_VISUALSET_H_ 63 #endif // XFA_FDE_FDE_VISUALSET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698