summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-09-15 13:26:32 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-09-15 21:25:46 +0000
commitbf15730b2c9577d4efd2124d84c6c8ccc5f66b43 (patch)
treeb03fb50d97a3233094437746260c0927464be5ec /fpdfsdk/pwl/cpwl_edit_ctrl.cpp
parentbb2f7e73bef47b4e865118cb52170563d849b4de (diff)
downloadpdfium-bf15730b2c9577d4efd2124d84c6c8ccc5f66b43.tar.xz
Move CPWL_CREATPARAM to CPWL_Wnd::CreateParams
This nesting makes so much more sense when I read the code. Fix member naming for this in CPWL_Wnd. Pass in/out CreateParams arg as pointer. Kill Reset() method, only called during destroy and nothing needs explicit cleanup. Change-Id: If50e403e11c131e7656da09c0cb36866223d64c6 Reviewed-on: https://pdfium-review.googlesource.com/14070 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_edit_ctrl.cpp')
-rw-r--r--fpdfsdk/pwl/cpwl_edit_ctrl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_ctrl.cpp b/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
index 3a79e0a1a8..7baaaa8ca5 100644
--- a/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
@@ -24,12 +24,12 @@ CPWL_EditCtrl::CPWL_EditCtrl()
CPWL_EditCtrl::~CPWL_EditCtrl() {}
-void CPWL_EditCtrl::OnCreate(PWL_CREATEPARAM& cp) {
- cp.eCursorType = FXCT_VBEAM;
+void CPWL_EditCtrl::OnCreate(CreateParams* pParamsToAdjust) {
+ pParamsToAdjust->eCursorType = FXCT_VBEAM;
}
void CPWL_EditCtrl::OnCreated() {
- SetFontSize(GetCreationParam().fFontSize);
+ SetFontSize(GetCreationParams().fFontSize);
m_pEdit->SetFontMap(GetFontMap());
m_pEdit->SetNotify(this);
@@ -85,19 +85,19 @@ void CPWL_EditCtrl::ScrollWindowVertically(float pos) {
m_pEdit->SetScrollPos(CFX_PointF(m_pEdit->GetScrollPos().x, pos));
}
-void CPWL_EditCtrl::CreateChildWnd(const PWL_CREATEPARAM& cp) {
+void CPWL_EditCtrl::CreateChildWnd(const CreateParams& cp) {
if (!IsReadOnly())
CreateEditCaret(cp);
}
-void CPWL_EditCtrl::CreateEditCaret(const PWL_CREATEPARAM& cp) {
+void CPWL_EditCtrl::CreateEditCaret(const CreateParams& cp) {
if (m_pEditCaret)
return;
m_pEditCaret = new CPWL_Caret;
m_pEditCaret->SetInvalidRect(GetClientRect());
- PWL_CREATEPARAM ecp = cp;
+ CreateParams ecp = cp;
ecp.pParentWnd = this;
ecp.dwFlags = PWS_CHILD | PWS_NOREFRESHCLIP;
ecp.dwBorderWidth = 0;