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

Side by Side Diff: fpdfsdk/fxedit/fxet_edit.cpp

Issue 2216853004: Refactor fx_ge part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fixing build, comments 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
« no previous file with comments | « fpdfsdk/fsdk_baseform.cpp ('k') | fpdfsdk/pdfwindow/PWL_Caret.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 #include "fpdfsdk/fxedit/include/fxet_edit.h" 7 #include "fpdfsdk/fxedit/include/fxet_edit.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h" 11 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h"
12 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" 12 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h"
13 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" 13 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h"
14 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h" 14 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h"
15 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h" 15 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h"
16 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" 16 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h"
17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" 17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
18 #include "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h" 18 #include "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h"
19 #include "core/fpdfdoc/include/cpvt_section.h" 19 #include "core/fpdfdoc/include/cpvt_section.h"
20 #include "core/fpdfdoc/include/cpvt_word.h" 20 #include "core/fpdfdoc/include/cpvt_word.h"
21 #include "core/fpdfdoc/include/ipvt_fontmap.h" 21 #include "core/fpdfdoc/include/ipvt_fontmap.h"
22 #include "core/fxge/include/cfx_pathdata.h"
22 #include "core/fxge/include/fx_ge.h" 23 #include "core/fxge/include/fx_ge.h"
23 #include "fpdfsdk/cfx_systemhandler.h" 24 #include "fpdfsdk/cfx_systemhandler.h"
24 #include "fpdfsdk/fxedit/include/fx_edit.h" 25 #include "fpdfsdk/fxedit/include/fx_edit.h"
25 #include "fpdfsdk/fxedit/include/fxet_edit.h" 26 #include "fpdfsdk/fxedit/include/fxet_edit.h"
26 #include "fpdfsdk/pdfwindow/PWL_Edit.h" 27 #include "fpdfsdk/pdfwindow/PWL_Edit.h"
27 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" 28 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
28 29
29 #define PVTWORD_STYLE_UNDERLINE 0x0002L 30 #define PVTWORD_STYLE_UNDERLINE 0x0002L
30 #define PVTWORD_STYLE_CROSSOUT 0x0004L 31 #define PVTWORD_STYLE_CROSSOUT 0x0004L
31 #define PVTWORD_STYLE_BOLD 0x0020L 32 #define PVTWORD_STYLE_BOLD 0x0020L
(...skipping 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after
3053 int32_t CFX_Edit_RectArray::GetSize() const { 3054 int32_t CFX_Edit_RectArray::GetSize() const {
3054 return m_Rects.GetSize(); 3055 return m_Rects.GetSize();
3055 } 3056 }
3056 3057
3057 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { 3058 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const {
3058 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) 3059 if (nIndex < 0 || nIndex >= m_Rects.GetSize())
3059 return nullptr; 3060 return nullptr;
3060 3061
3061 return m_Rects.GetAt(nIndex); 3062 return m_Rects.GetAt(nIndex);
3062 } 3063 }
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseform.cpp ('k') | fpdfsdk/pdfwindow/PWL_Caret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698