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

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

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase 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_mgr.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_graphstatedata.h"
22 #include "core/fxge/include/cfx_pathdata.h" 23 #include "core/fxge/include/cfx_pathdata.h"
23 #include "core/fxge/include/fx_ge.h" 24 #include "core/fxge/include/cfx_renderdevice.h"
24 #include "fpdfsdk/cfx_systemhandler.h" 25 #include "fpdfsdk/cfx_systemhandler.h"
25 #include "fpdfsdk/fxedit/include/fx_edit.h" 26 #include "fpdfsdk/fxedit/include/fx_edit.h"
26 #include "fpdfsdk/fxedit/include/fxet_edit.h" 27 #include "fpdfsdk/fxedit/include/fxet_edit.h"
27 #include "fpdfsdk/pdfwindow/PWL_Edit.h" 28 #include "fpdfsdk/pdfwindow/PWL_Edit.h"
28 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" 29 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
29 30
30 #define PVTWORD_STYLE_UNDERLINE 0x0002L 31 #define PVTWORD_STYLE_UNDERLINE 0x0002L
31 #define PVTWORD_STYLE_CROSSOUT 0x0004L 32 #define PVTWORD_STYLE_CROSSOUT 0x0004L
32 #define PVTWORD_STYLE_BOLD 0x0020L 33 #define PVTWORD_STYLE_BOLD 0x0020L
33 #define PVTWORD_STYLE_ITALIC 0x0040L 34 #define PVTWORD_STYLE_ITALIC 0x0040L
(...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after
3054 int32_t CFX_Edit_RectArray::GetSize() const { 3055 int32_t CFX_Edit_RectArray::GetSize() const {
3055 return m_Rects.GetSize(); 3056 return m_Rects.GetSize();
3056 } 3057 }
3057 3058
3058 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { 3059 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const {
3059 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) 3060 if (nIndex < 0 || nIndex >= m_Rects.GetSize())
3060 return nullptr; 3061 return nullptr;
3061 3062
3062 return m_Rects.GetAt(nIndex); 3063 return m_Rects.GetAt(nIndex);
3063 } 3064 }
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/pdfwindow/PWL_Caret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698