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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Label.cpp

Issue 1923093002: Remove IFX_SystemHandler. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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
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/fx_edit.h" 7 #include "fpdfsdk/fxedit/include/fx_edit.h"
8 #include "fpdfsdk/pdfwindow/PWL_Label.h" 8 #include "fpdfsdk/pdfwindow/PWL_Label.h"
9 #include "fpdfsdk/pdfwindow/PWL_Utils.h" 9 #include "fpdfsdk/pdfwindow/PWL_Utils.h"
10 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" 10 #include "fpdfsdk/pdfwindow/PWL_Wnd.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 GetClientRect(); 89 GetClientRect();
90 90
91 CFX_FloatRect rcClip; 91 CFX_FloatRect rcClip;
92 CPVT_WordRange wrRange = m_pEdit->GetVisibleWordRange(); 92 CPVT_WordRange wrRange = m_pEdit->GetVisibleWordRange();
93 CPVT_WordRange* pRange = NULL; 93 CPVT_WordRange* pRange = NULL;
94 94
95 if (!HasFlag(PES_TEXTOVERFLOW)) { 95 if (!HasFlag(PES_TEXTOVERFLOW)) {
96 rcClip = GetClientRect(); 96 rcClip = GetClientRect();
97 pRange = &wrRange; 97 pRange = &wrRange;
98 } 98 }
99 IFX_SystemHandler* pSysHandler = GetSystemHandler(); 99 CFX_SystemHandler* pSysHandler = GetSystemHandler();
100 IFX_Edit::DrawEdit( 100 IFX_Edit::DrawEdit(
101 pDevice, pUser2Device, m_pEdit, 101 pDevice, pUser2Device, m_pEdit,
102 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), 102 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()),
103 CPWL_Utils::PWLColorToFXColor(GetTextStrokeColor(), GetTransparency()), 103 CPWL_Utils::PWLColorToFXColor(GetTextStrokeColor(), GetTransparency()),
104 rcClip, CFX_FloatPoint(0.0f, 0.0f), pRange, pSysHandler, NULL); 104 rcClip, CFX_FloatPoint(0.0f, 0.0f), pRange, pSysHandler, NULL);
105 } 105 }
106 106
107 void CPWL_Label::SetHorzScale(int32_t nHorzScale) { 107 void CPWL_Label::SetHorzScale(int32_t nHorzScale) {
108 m_pEdit->SetHorzScale(nHorzScale); 108 m_pEdit->SetHorzScale(nHorzScale);
109 } 109 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void CPWL_Label::SetLimitChar(int32_t nLimitChar) { 142 void CPWL_Label::SetLimitChar(int32_t nLimitChar) {
143 m_pEdit->SetLimitChar(nLimitChar); 143 m_pEdit->SetLimitChar(nLimitChar);
144 } 144 }
145 145
146 int32_t CPWL_Label::GetTotalWords() { 146 int32_t CPWL_Label::GetTotalWords() {
147 if (m_pEdit) 147 if (m_pEdit)
148 return m_pEdit->GetTotalWords(); 148 return m_pEdit->GetTotalWords();
149 149
150 return 0; 150 return 0;
151 } 151 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698