diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-02 14:22:41 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-02 21:55:05 +0000 |
commit | 12eea8135482911c054e53b482b4176cbd629d97 (patch) | |
tree | 1f53239faa69c896fd35a4a7578a7dfe0beebba2 | |
parent | fac46f8ffe6933d6c4bbf4bc8d4e138753cfa876 (diff) | |
download | pdfium-12eea8135482911c054e53b482b4176cbd629d97.tar.xz |
Remove unused bits from PWL_Edit headers.chromium/3120
Change-Id: Ic2e1639ab003f0a4981be0c61714ca9cd0b04c5f
Reviewed-on: https://pdfium-review.googlesource.com/6230
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_Edit.cpp | 3 | ||||
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_Edit.h | 12 | ||||
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_EditCtrl.h | 8 |
3 files changed, 4 insertions, 19 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp index 2b78824711..a2f1c89a8a 100644 --- a/fpdfsdk/pdfwindow/PWL_Edit.cpp +++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp @@ -29,8 +29,7 @@ #include "public/fpdf_fwlevent.h" #include "third_party/base/stl_util.h" -CPWL_Edit::CPWL_Edit() - : m_pFillerNotify(nullptr), m_bFocus(false), m_pFormFiller(nullptr) {} +CPWL_Edit::CPWL_Edit() : m_bFocus(false) {} CPWL_Edit::~CPWL_Edit() { ASSERT(!m_bFocus); diff --git a/fpdfsdk/pdfwindow/PWL_Edit.h b/fpdfsdk/pdfwindow/PWL_Edit.h index 6f8c37baa5..6fc02cae6f 100644 --- a/fpdfsdk/pdfwindow/PWL_Edit.h +++ b/fpdfsdk/pdfwindow/PWL_Edit.h @@ -7,17 +7,10 @@ #ifndef FPDFSDK_PDFWINDOW_PWL_EDIT_H_ #define FPDFSDK_PDFWINDOW_PWL_EDIT_H_ -#include <vector> - +#include "core/fpdfdoc/cpvt_wordrange.h" #include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/fx_basic.h" -#include "fpdfsdk/fxedit/fx_edit.h" #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" -#include "fpdfsdk/pdfwindow/PWL_Wnd.h" - -class CPDF_PageObjectHolder; -class CPDF_TextObject; -class IFX_Edit_UndoItem; class IPWL_Filler_Notify { public: @@ -136,9 +129,10 @@ class CPWL_Edit : public CPWL_EditCtrl { CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, bool bLatin, bool bArabic) const; - CFX_UnownedPtr<IPWL_Filler_Notify> m_pFillerNotify; + bool m_bFocus; CFX_FloatRect m_rcOldWindow; + CFX_UnownedPtr<IPWL_Filler_Notify> m_pFillerNotify; CFX_UnownedPtr<CFFL_FormFiller> m_pFormFiller; }; diff --git a/fpdfsdk/pdfwindow/PWL_EditCtrl.h b/fpdfsdk/pdfwindow/PWL_EditCtrl.h index 0f2487bc26..623079b3d9 100644 --- a/fpdfsdk/pdfwindow/PWL_EditCtrl.h +++ b/fpdfsdk/pdfwindow/PWL_EditCtrl.h @@ -10,25 +10,17 @@ #include <memory> #include "core/fxcrt/fx_string.h" -#include "fpdfsdk/fxedit/fx_edit.h" #include "fpdfsdk/pdfwindow/PWL_Wnd.h" class CFX_Edit; class CPWL_Caret; -class CPWL_Edit; -class CPWL_EditCtrl; -struct CPVT_SecProps; struct CPVT_WordPlace; -struct CPVT_WordProps; -struct CPVT_WordRange; enum PWL_EDIT_ALIGNFORMAT_H { PEAH_LEFT = 0, PEAH_MIDDLE, PEAH_RIGHT }; enum PWL_EDIT_ALIGNFORMAT_V { PEAV_TOP = 0, PEAV_CENTER, PEAV_BOTTOM }; class CPWL_EditCtrl : public CPWL_Wnd { - friend class CPWL_Edit_Notify; - public: CPWL_EditCtrl(); ~CPWL_EditCtrl() override; |