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

Side by Side Diff: fpdfsdk/fxedit/include/fxet_edit.h

Issue 2341693003: Cleanup CFX_SystemHandler. (Closed)
Patch Set: Review feedback Created 4 years, 3 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/fxedit/fxet_edit.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.h » ('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 FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ 7 #ifndef FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_
8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ 8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fpdfdoc/include/cpvt_secprops.h" 12 #include "core/fpdfdoc/include/cpvt_secprops.h"
13 #include "core/fpdfdoc/include/cpvt_wordprops.h" 13 #include "core/fpdfdoc/include/cpvt_wordprops.h"
14 #include "fpdfsdk/fxedit/include/fx_edit.h" 14 #include "fpdfsdk/fxedit/include/fx_edit.h"
15 15
16 class CPDF_PageObjectHolder; 16 class CFFL_FormFiller;
17 class CPDF_TextObject;
18 class CPWL_Edit;
19 class CPWL_EditCtrl;
20 class CFX_Edit; 17 class CFX_Edit;
21 class CFX_Edit_Iterator; 18 class CFX_Edit_Iterator;
22 class CFX_Edit_Provider; 19 class CFX_Edit_Provider;
23 class CFX_RenderDevice; 20 class CFX_RenderDevice;
24 class CFX_SystemHandler; 21 class CFX_SystemHandler;
22 class CPDF_PageObjectHolder;
23 class CPDF_TextObject;
24 class CPWL_Edit;
25 class CPWL_EditCtrl;
26
25 class IFX_Edit_UndoItem; 27 class IFX_Edit_UndoItem;
26 28
27 struct CFX_Edit_LineRect { 29 struct CFX_Edit_LineRect {
28 CFX_Edit_LineRect(const CPVT_WordRange& wrLine, const CFX_FloatRect& rcLine) 30 CFX_Edit_LineRect(const CPVT_WordRange& wrLine, const CFX_FloatRect& rcLine)
29 : m_wrLine(wrLine), m_rcLine(rcLine) {} 31 : m_wrLine(wrLine), m_rcLine(rcLine) {}
30 32
31 CPVT_WordRange m_wrLine; 33 CPVT_WordRange m_wrLine;
32 CFX_FloatRect m_rcLine; 34 CFX_FloatRect m_rcLine;
33 }; 35 };
34 36
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 const CPVT_WordRange* pRange); 327 const CPVT_WordRange* pRange);
326 static void DrawEdit(CFX_RenderDevice* pDevice, 328 static void DrawEdit(CFX_RenderDevice* pDevice,
327 CFX_Matrix* pUser2Device, 329 CFX_Matrix* pUser2Device,
328 CFX_Edit* pEdit, 330 CFX_Edit* pEdit,
329 FX_COLORREF crTextFill, 331 FX_COLORREF crTextFill,
330 FX_COLORREF crTextStroke, 332 FX_COLORREF crTextStroke,
331 const CFX_FloatRect& rcClip, 333 const CFX_FloatRect& rcClip,
332 const CFX_FloatPoint& ptOffset, 334 const CFX_FloatPoint& ptOffset,
333 const CPVT_WordRange* pRange, 335 const CPVT_WordRange* pRange,
334 CFX_SystemHandler* pSystemHandler, 336 CFX_SystemHandler* pSystemHandler,
335 void* pFFLData); 337 CFFL_FormFiller* pFFLData);
336 static void GeneratePageObjects( 338 static void GeneratePageObjects(
337 CPDF_PageObjectHolder* pObjectHolder, 339 CPDF_PageObjectHolder* pObjectHolder,
338 CFX_Edit* pEdit, 340 CFX_Edit* pEdit,
339 const CFX_FloatPoint& ptOffset, 341 const CFX_FloatPoint& ptOffset,
340 const CPVT_WordRange* pRange, 342 const CPVT_WordRange* pRange,
341 FX_COLORREF crText, 343 FX_COLORREF crText,
342 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); 344 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray);
343 345
344 CFX_Edit(); 346 CFX_Edit();
345 ~CFX_Edit(); 347 ~CFX_Edit();
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 int32_t charset, 551 int32_t charset,
550 int32_t nFontIndex) override; 552 int32_t nFontIndex) override;
551 int32_t GetDefaultFontIndex() override; 553 int32_t GetDefaultFontIndex() override;
552 FX_BOOL IsLatinWord(uint16_t word) override; 554 FX_BOOL IsLatinWord(uint16_t word) override;
553 555
554 private: 556 private:
555 IPVT_FontMap* m_pFontMap; 557 IPVT_FontMap* m_pFontMap;
556 }; 558 };
557 559
558 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ 560 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fxedit/fxet_edit.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698