summaryrefslogtreecommitdiff
path: root/core/fpdftext/include/cpdf_textpage.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-21 10:43:39 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-21 10:43:39 -0700
commit691411873cb16eb82d5912d0f73b96310f632932 (patch)
treec6d80564123ad2768eebd165fe286a4854b5dce0 /core/fpdftext/include/cpdf_textpage.h
parentfc397dc66c0a5f02f4bb4558423d4d647f567308 (diff)
downloadpdfium-691411873cb16eb82d5912d0f73b96310f632932.tar.xz
Remove CFX_ArrayTemplate from CPDF_LinkExtract
Use unqiue_ptrs while we're at it, also better ctor. Review URL: https://codereview.chromium.org/1896303002
Diffstat (limited to 'core/fpdftext/include/cpdf_textpage.h')
-rw-r--r--core/fpdftext/include/cpdf_textpage.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fpdftext/include/cpdf_textpage.h b/core/fpdftext/include/cpdf_textpage.h
index 19e8791b5a..8d608b0bf0 100644
--- a/core/fpdftext/include/cpdf_textpage.h
+++ b/core/fpdftext/include/cpdf_textpage.h
@@ -67,7 +67,7 @@ class CPDF_TextPage {
int TextIndexFromCharIndex(int CharIndex) const;
int CountChars() const;
void GetCharInfo(int index, FPDF_CHAR_INFO* info) const;
- void GetRectArray(int start, int nCount, CFX_RectArray& rectArray) const;
+ void GetRectArray(int start, int nCount, CFX_RectArray* rectArray) const;
int GetIndexAtPos(CFX_FloatPoint point,
FX_FLOAT xTolerance,
FX_FLOAT yTolerance) const;
@@ -85,14 +85,12 @@ class CPDF_TextPage {
FX_FLOAT& top,
FX_FLOAT& right,
FX_FLOAT& bottom) const;
- FX_BOOL GetBaselineRotate(int rectIndex, int& Rotate);
- FX_BOOL GetBaselineRotate(const CFX_FloatRect& rect, int& Rotate);
int CountBoundedSegments(FX_FLOAT left,
FX_FLOAT top,
FX_FLOAT right,
FX_FLOAT bottom,
FX_BOOL bContains = FALSE);
- void GetBoundedSegment(int index, int& start, int& count) const;
+
int GetWordBreak(int index, int direction) const;
static FX_BOOL IsRectIntersect(const CFX_FloatRect& rect1,