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

Side by Side Diff: core/include/fpdftext/fpdf_text.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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 | « core/include/fpdfdoc/fpdf_vt.h ('k') | core/include/fxcodec/fx_codec.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 CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ 7 #ifndef CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_
8 #define CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ 8 #define CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_
9 9
10 #include "../fpdfapi/fpdf_page.h" 10 #include "../fpdfapi/fpdf_page.h"
(...skipping 18 matching lines...) Expand all
29 void PDF_GetTextStream_Unicode(CFX_WideTextBuf& buffer, CPDF_Document* pDoc, CPD F_Dictionary* pPage, 29 void PDF_GetTextStream_Unicode(CFX_WideTextBuf& buffer, CPDF_Document* pDoc, CPD F_Dictionary* pPage,
30 FX_DWORD flags); 30 FX_DWORD flags);
31 CFX_WideString PDF_GetFirstTextLine_Unicode(CPDF_Document* pDoc, CPDF_Dictionary * pPage); 31 CFX_WideString PDF_GetFirstTextLine_Unicode(CPDF_Document* pDoc, CPDF_Dictionary * pPage);
32 #define CHAR_ERROR -1 32 #define CHAR_ERROR -1
33 #define CHAR_NORMAL 0 33 #define CHAR_NORMAL 0
34 #define CHAR_GENERATED 1 34 #define CHAR_GENERATED 1
35 #define CHAR_UNUNICODE 2 35 #define CHAR_UNUNICODE 2
36 typedef struct { 36 typedef struct {
37 FX_WCHAR m_Unicode; 37 FX_WCHAR m_Unicode;
38 FX_WCHAR m_Charcode; 38 FX_WCHAR m_Charcode;
39 FX_INT32» » » m_Flag; 39 int32_t» » » m_Flag;
40 FX_FLOAT m_FontSize; 40 FX_FLOAT m_FontSize;
41 FX_FLOAT m_OriginX; 41 FX_FLOAT m_OriginX;
42 FX_FLOAT m_OriginY; 42 FX_FLOAT m_OriginY;
43 CFX_FloatRect m_CharBox; 43 CFX_FloatRect m_CharBox;
44 CPDF_TextObject* m_pTextObj; 44 CPDF_TextObject* m_pTextObj;
45 CFX_AffineMatrix m_Matrix; 45 CFX_AffineMatrix m_Matrix;
46 } FPDF_CHAR_INFO; 46 } FPDF_CHAR_INFO;
47 typedef CFX_ArrayTemplate<CFX_FloatRect> CFX_RectArray; 47 typedef CFX_ArrayTemplate<CFX_FloatRect> CFX_RectArray;
48 #define FPDFTEXT_LRTB 0 48 #define FPDFTEXT_LRTB 0
49 #define FPDFTEXT_RLTB 1 49 #define FPDFTEXT_RLTB 1
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual int CountLinks() const = 0; 162 virtual int CountLinks() const = 0;
163 163
164 virtual CFX_WideString GetURL(int index) const = 0; 164 virtual CFX_WideString GetURL(int index) const = 0;
165 165
166 virtual void GetBoundedSegment(int index, int & start, int& count) const = 0; 166 virtual void GetBoundedSegment(int index, int & start, int& count) const = 0;
167 167
168 virtual void GetRects(int index, CFX_RectArra y& rects) const = 0; 168 virtual void GetRects(int index, CFX_RectArra y& rects) const = 0;
169 }; 169 };
170 170
171 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ 171 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_vt.h ('k') | core/include/fxcodec/fx_codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698