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

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

Issue 1285183005: Merge to XFA: Cleanup: s/Torelance/Tolerance/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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
« no previous file with comments | « no previous file | core/src/fpdftext/fpdf_text_int.cpp » ('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_parser.h" 10 #include "../fpdfapi/fpdf_parser.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 virtual int CountChars() const = 0; 96 virtual int CountChars() const = 0;
97 97
98 virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const = 0; 98 virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const = 0;
99 99
100 virtual void GetRectArray(int start, 100 virtual void GetRectArray(int start,
101 int nCount, 101 int nCount,
102 CFX_RectArray& rectArray) const = 0; 102 CFX_RectArray& rectArray) const = 0;
103 103
104 virtual int GetIndexAtPos(CPDF_Point point, 104 virtual int GetIndexAtPos(CPDF_Point point,
105 FX_FLOAT xTorelance, 105 FX_FLOAT xTolerance,
106 FX_FLOAT yTorelance) const = 0; 106 FX_FLOAT yTolerance) const = 0;
107 107
108 virtual int GetIndexAtPos(FX_FLOAT x, 108 virtual int GetIndexAtPos(FX_FLOAT x,
109 FX_FLOAT y, 109 FX_FLOAT y,
110 FX_FLOAT xTorelance, 110 FX_FLOAT xTolerance,
111 FX_FLOAT yTorelance) const = 0; 111 FX_FLOAT yTolerance) const = 0;
112 112
113 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0; 113 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0;
114 114
115 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, 115 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect,
116 CFX_RectArray& resRectArray) const = 0; 116 CFX_RectArray& resRectArray) const = 0;
117 117
118 virtual int CountRects(int start, int nCount) = 0; 118 virtual int CountRects(int start, int nCount) = 0;
119 119
120 virtual void GetRect(int rectIndex, 120 virtual void GetRect(int rectIndex,
121 FX_FLOAT& left, 121 FX_FLOAT& left,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 virtual int CountLinks() const = 0; 175 virtual int CountLinks() const = 0;
176 176
177 virtual CFX_WideString GetURL(int index) const = 0; 177 virtual CFX_WideString GetURL(int index) const = 0;
178 178
179 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; 179 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0;
180 180
181 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; 181 virtual void GetRects(int index, CFX_RectArray& rects) const = 0;
182 }; 182 };
183 183
184 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ 184 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdftext/fpdf_text_int.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698