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

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

Issue 1243953004: Re-land else-after-returns (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 5 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/fpdfapi/fpdf_edit/fpdf_edit_doc.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void GetCharInfo(int index, FPDF_CHAR_INFO & info) const = 0; 93 virtual void GetCharInfo(int index, FPDF_CHAR_INFO & info) const = 0;
94 94
95 virtual void GetRectArray(int start, int nCount, CFX_ RectArray& rectArray) const = 0; 95 virtual void GetRectArray(int start, int nCount, CFX_ RectArray& rectArray) const = 0;
96 96
97 97
98 98
99 virtual int GetIndexAtPos(CPDF_Point point, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const = 0; 99 virtual int GetIndexAtPos(CPDF_Point point, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const = 0;
100 100
101 virtual int GetIndexAtPos(FX_FLOAT x, FX_FLOAT y, FX _FLOAT xTorelance, FX_FLOAT yTorelance) const = 0; 101 virtual int GetIndexAtPos(FX_FLOAT x, FX_FLOAT y, FX _FLOAT xTorelance, FX_FLOAT yTorelance) const = 0;
102 102
103 virtual int GetOrderByDirection(int index, i nt direction) const = 0;
104
105 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0; 103 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0;
106 104
107 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, CFX_RectArray& resRectArray) const = 0; 105 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, CFX_RectArray& resRectArray) const = 0;
108 106
109 107
110 virtual int CountRects(int start, int nCount) = 0; 108 virtual int CountRects(int start, int nCount) = 0;
111 109
112 virtual void GetRect(int rectIndex, FX_FLOAT& left, F X_FLOAT& top, FX_FLOAT& right, FX_FLOAT &bottom) const = 0; 110 virtual void GetRect(int rectIndex, FX_FLOAT& left, F X_FLOAT& top, FX_FLOAT& right, FX_FLOAT &bottom) const = 0;
113 111
114 virtual FX_BOOL GetBaselineRotate(int rectIndex, int& Ro tate) = 0; 112 virtual FX_BOOL GetBaselineRotate(int rectIndex, int& Ro tate) = 0;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual int CountLinks() const = 0; 160 virtual int CountLinks() const = 0;
163 161
164 virtual CFX_WideString GetURL(int index) const = 0; 162 virtual CFX_WideString GetURL(int index) const = 0;
165 163
166 virtual void GetBoundedSegment(int index, int & start, int& count) const = 0; 164 virtual void GetBoundedSegment(int index, int & start, int& count) const = 0;
167 165
168 virtual void GetRects(int index, CFX_RectArra y& rects) const = 0; 166 virtual void GetRects(int index, CFX_RectArra y& rects) const = 0;
169 }; 167 };
170 168
171 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ 169 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698