From 385bf2e0481230b1f5e50a2627063383bd297451 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Oct 2018 17:37:17 +0000 Subject: Rename NewPDFWindow() => NewPWLWindow() The window comes from the PWL layer. The string |PDF| doesn't add a lot of information since the whole repository is about PDF. Change-Id: I396351519e68ac0c59a02806941f45d3b17e7567 Reviewed-on: https://pdfium-review.googlesource.com/c/44670 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fpdfsdk/formfiller/cffl_checkbox.cpp | 2 +- fpdfsdk/formfiller/cffl_checkbox.h | 2 +- fpdfsdk/formfiller/cffl_combobox.cpp | 2 +- fpdfsdk/formfiller/cffl_combobox.h | 2 +- fpdfsdk/formfiller/cffl_formfiller.cpp | 2 +- fpdfsdk/formfiller/cffl_formfiller.h | 2 +- fpdfsdk/formfiller/cffl_listbox.cpp | 2 +- fpdfsdk/formfiller/cffl_listbox.h | 2 +- fpdfsdk/formfiller/cffl_pushbutton.cpp | 2 +- fpdfsdk/formfiller/cffl_pushbutton.h | 2 +- fpdfsdk/formfiller/cffl_radiobutton.cpp | 2 +- fpdfsdk/formfiller/cffl_radiobutton.h | 2 +- fpdfsdk/formfiller/cffl_textfield.cpp | 2 +- fpdfsdk/formfiller/cffl_textfield.h | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fpdfsdk/formfiller/cffl_checkbox.cpp b/fpdfsdk/formfiller/cffl_checkbox.cpp index 1127d8f258..3dbac1aa84 100644 --- a/fpdfsdk/formfiller/cffl_checkbox.cpp +++ b/fpdfsdk/formfiller/cffl_checkbox.cpp @@ -21,7 +21,7 @@ CFFL_CheckBox::CFFL_CheckBox(CPDFSDK_FormFillEnvironment* pApp, CFFL_CheckBox::~CFFL_CheckBox() {} -std::unique_ptr CFFL_CheckBox::NewPDFWindow( +std::unique_ptr CFFL_CheckBox::NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) { auto pWnd = pdfium::MakeUnique(std::move(pAttachedData)); diff --git a/fpdfsdk/formfiller/cffl_checkbox.h b/fpdfsdk/formfiller/cffl_checkbox.h index a8fe316356..25c6260415 100644 --- a/fpdfsdk/formfiller/cffl_checkbox.h +++ b/fpdfsdk/formfiller/cffl_checkbox.h @@ -19,7 +19,7 @@ class CFFL_CheckBox final : public CFFL_Button { ~CFFL_CheckBox() override; // CFFL_Button: - std::unique_ptr NewPDFWindow( + std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) override; bool OnKeyDown(CPDFSDK_Annot* pAnnot, diff --git a/fpdfsdk/formfiller/cffl_combobox.cpp b/fpdfsdk/formfiller/cffl_combobox.cpp index 460fdce7ec..b068171250 100644 --- a/fpdfsdk/formfiller/cffl_combobox.cpp +++ b/fpdfsdk/formfiller/cffl_combobox.cpp @@ -44,7 +44,7 @@ CPWL_Wnd::CreateParams CFFL_ComboBox::GetCreateParam() { return cp; } -std::unique_ptr CFFL_ComboBox::NewPDFWindow( +std::unique_ptr CFFL_ComboBox::NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) { auto pWnd = pdfium::MakeUnique(std::move(pAttachedData)); diff --git a/fpdfsdk/formfiller/cffl_combobox.h b/fpdfsdk/formfiller/cffl_combobox.h index 66cd55c3e6..e33130bb65 100644 --- a/fpdfsdk/formfiller/cffl_combobox.h +++ b/fpdfsdk/formfiller/cffl_combobox.h @@ -29,7 +29,7 @@ class CFFL_ComboBox final : public CFFL_TextObject, // CFFL_TextObject: CPWL_Wnd::CreateParams GetCreateParam() override; - std::unique_ptr NewPDFWindow( + std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) override; bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; diff --git a/fpdfsdk/formfiller/cffl_formfiller.cpp b/fpdfsdk/formfiller/cffl_formfiller.cpp index dace98a8c1..76421368b2 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.cpp +++ b/fpdfsdk/formfiller/cffl_formfiller.cpp @@ -391,7 +391,7 @@ CPWL_Wnd* CFFL_FormFiller::GetPDFWindow(CPDFSDK_PageView* pPageView, pPrivateData->pPageView = pPageView; pPrivateData->nWidgetAppearanceAge = m_pWidget->GetAppearanceAge(); pPrivateData->nWidgetValueAge = 0; - m_Maps[pPageView] = NewPDFWindow(cp, std::move(pPrivateData)); + m_Maps[pPageView] = NewPWLWindow(cp, std::move(pPrivateData)); return m_Maps[pPageView].get(); } diff --git a/fpdfsdk/formfiller/cffl_formfiller.h b/fpdfsdk/formfiller/cffl_formfiller.h index 6b04e0c936..3bc5415202 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.h +++ b/fpdfsdk/formfiller/cffl_formfiller.h @@ -106,7 +106,7 @@ class CFFL_FormFiller : public CPWL_Wnd::ProviderIface, const CPDFSDK_FieldAction& faNew); virtual CPWL_Wnd::CreateParams GetCreateParam(); - virtual std::unique_ptr NewPDFWindow( + virtual std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) = 0; virtual CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, diff --git a/fpdfsdk/formfiller/cffl_listbox.cpp b/fpdfsdk/formfiller/cffl_listbox.cpp index 88414cc9fc..4eb3a7105b 100644 --- a/fpdfsdk/formfiller/cffl_listbox.cpp +++ b/fpdfsdk/formfiller/cffl_listbox.cpp @@ -39,7 +39,7 @@ CPWL_Wnd::CreateParams CFFL_ListBox::GetCreateParam() { return cp; } -std::unique_ptr CFFL_ListBox::NewPDFWindow( +std::unique_ptr CFFL_ListBox::NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) { auto pWnd = pdfium::MakeUnique(std::move(pAttachedData)); diff --git a/fpdfsdk/formfiller/cffl_listbox.h b/fpdfsdk/formfiller/cffl_listbox.h index ab4005f7ec..7fbaf0c53d 100644 --- a/fpdfsdk/formfiller/cffl_listbox.h +++ b/fpdfsdk/formfiller/cffl_listbox.h @@ -22,7 +22,7 @@ class CFFL_ListBox final : public CFFL_TextObject { // CFFL_TextObject: CPWL_Wnd::CreateParams GetCreateParam() override; - std::unique_ptr NewPDFWindow( + std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) override; bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; diff --git a/fpdfsdk/formfiller/cffl_pushbutton.cpp b/fpdfsdk/formfiller/cffl_pushbutton.cpp index 76719d95c8..04db191572 100644 --- a/fpdfsdk/formfiller/cffl_pushbutton.cpp +++ b/fpdfsdk/formfiller/cffl_pushbutton.cpp @@ -17,7 +17,7 @@ CFFL_PushButton::CFFL_PushButton(CPDFSDK_FormFillEnvironment* pApp, CFFL_PushButton::~CFFL_PushButton() = default; -std::unique_ptr CFFL_PushButton::NewPDFWindow( +std::unique_ptr CFFL_PushButton::NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) { auto pWnd = pdfium::MakeUnique(std::move(pAttachedData)); diff --git a/fpdfsdk/formfiller/cffl_pushbutton.h b/fpdfsdk/formfiller/cffl_pushbutton.h index f10dd67f29..fe4803473d 100644 --- a/fpdfsdk/formfiller/cffl_pushbutton.h +++ b/fpdfsdk/formfiller/cffl_pushbutton.h @@ -17,7 +17,7 @@ class CFFL_PushButton final : public CFFL_Button { ~CFFL_PushButton() override; // CFFL_Button: - std::unique_ptr NewPDFWindow( + std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) override; }; diff --git a/fpdfsdk/formfiller/cffl_radiobutton.cpp b/fpdfsdk/formfiller/cffl_radiobutton.cpp index 4ae80d6a77..c8103d4a62 100644 --- a/fpdfsdk/formfiller/cffl_radiobutton.cpp +++ b/fpdfsdk/formfiller/cffl_radiobutton.cpp @@ -20,7 +20,7 @@ CFFL_RadioButton::CFFL_RadioButton(CPDFSDK_FormFillEnvironment* pApp, CFFL_RadioButton::~CFFL_RadioButton() {} -std::unique_ptr CFFL_RadioButton::NewPDFWindow( +std::unique_ptr CFFL_RadioButton::NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) { auto pWnd = pdfium::MakeUnique(std::move(pAttachedData)); diff --git a/fpdfsdk/formfiller/cffl_radiobutton.h b/fpdfsdk/formfiller/cffl_radiobutton.h index 0076919144..bed7b6fa2b 100644 --- a/fpdfsdk/formfiller/cffl_radiobutton.h +++ b/fpdfsdk/formfiller/cffl_radiobutton.h @@ -19,7 +19,7 @@ class CFFL_RadioButton final : public CFFL_Button { ~CFFL_RadioButton() override; // CFFL_Button: - std::unique_ptr NewPDFWindow( + std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) override; bool OnKeyDown(CPDFSDK_Annot* pAnnot, diff --git a/fpdfsdk/formfiller/cffl_textfield.cpp b/fpdfsdk/formfiller/cffl_textfield.cpp index e3cde98c82..a54939666f 100644 --- a/fpdfsdk/formfiller/cffl_textfield.cpp +++ b/fpdfsdk/formfiller/cffl_textfield.cpp @@ -69,7 +69,7 @@ CPWL_Wnd::CreateParams CFFL_TextField::GetCreateParam() { return cp; } -std::unique_ptr CFFL_TextField::NewPDFWindow( +std::unique_ptr CFFL_TextField::NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) { auto pWnd = pdfium::MakeUnique(std::move(pAttachedData)); diff --git a/fpdfsdk/formfiller/cffl_textfield.h b/fpdfsdk/formfiller/cffl_textfield.h index 1ba0e6399f..e45755fc94 100644 --- a/fpdfsdk/formfiller/cffl_textfield.h +++ b/fpdfsdk/formfiller/cffl_textfield.h @@ -34,7 +34,7 @@ class CFFL_TextField final : public CFFL_TextObject, // CFFL_TextObject: CPWL_Wnd::CreateParams GetCreateParam() override; - std::unique_ptr NewPDFWindow( + std::unique_ptr NewPWLWindow( const CPWL_Wnd::CreateParams& cp, std::unique_ptr pAttachedData) override; bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; -- cgit v1.2.3