summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/PWL_Edit.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-07-13 11:34:23 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-13 11:34:23 -0700
commitdbc7716e1b8d67a5ca422ef0bbfe87ff8c5cf4ea (patch)
treebe90424187b3e350b6ef824f0ac0a069cbd0beb8 /fpdfsdk/pdfwindow/PWL_Edit.cpp
parente35af1e3c93e5e1f374799da115eb4b99820831c (diff)
downloadpdfium-dbc7716e1b8d67a5ca422ef0bbfe87ff8c5cf4ea.tar.xz
This CL removes IPWL_Edit_Notfy and removes the OnKillFocus override from IPWL_FocusHandler. Review-Url: https://codereview.chromium.org/2144813002
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Edit.cpp')
-rw-r--r--fpdfsdk/pdfwindow/PWL_Edit.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp
index d729945032..39ea822ea2 100644
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp
@@ -104,11 +104,6 @@ CFX_FloatRect CPWL_Edit::GetClientRect() const {
return rcClient;
}
-void CPWL_Edit::SetAlignFormatH(PWL_EDIT_ALIGNFORMAT_H nFormat,
- FX_BOOL bPaint) {
- m_pEdit->SetAlignmentH((int32_t)nFormat, bPaint);
-}
-
void CPWL_Edit::SetAlignFormatV(PWL_EDIT_ALIGNFORMAT_V nFormat,
FX_BOOL bPaint) {
m_pEdit->SetAlignmentV((int32_t)nFormat, bPaint);
@@ -464,14 +459,7 @@ void CPWL_Edit::OnKillFocus() {
m_pEdit->SelectNone();
SetCaret(FALSE, CFX_FloatPoint(0.0f, 0.0f), CFX_FloatPoint(0.0f, 0.0f));
-
SetCharSet(FXFONT_ANSI_CHARSET);
-
- if (!IsReadOnly()) {
- if (IPWL_FocusHandler* pFocusHandler = GetFocusHandler())
- pFocusHandler->OnKillFocus(this);
- }
-
m_bFocus = FALSE;
}
@@ -770,10 +758,6 @@ void CPWL_Edit::OnInsertReturn(const CPVT_WordPlace& place,
m_pEdit->RefreshWordRange(CombineWordRange(GetLatinWordsRange(oldplace),
GetLatinWordsRange(place)));
}
-
- if (m_pEditNotify) {
- m_pEditNotify->OnInsertReturn(place, oldplace);
- }
}
void CPWL_Edit::OnBackSpace(const CPVT_WordPlace& place,
@@ -782,10 +766,6 @@ void CPWL_Edit::OnBackSpace(const CPVT_WordPlace& place,
m_pEdit->RefreshWordRange(CombineWordRange(GetLatinWordsRange(oldplace),
GetLatinWordsRange(place)));
}
-
- if (m_pEditNotify) {
- m_pEditNotify->OnBackSpace(place, oldplace);
- }
}
void CPWL_Edit::OnDelete(const CPVT_WordPlace& place,
@@ -794,10 +774,6 @@ void CPWL_Edit::OnDelete(const CPVT_WordPlace& place,
m_pEdit->RefreshWordRange(CombineWordRange(GetLatinWordsRange(oldplace),
GetLatinWordsRange(place)));
}
-
- if (m_pEditNotify) {
- m_pEditNotify->OnDelete(place, oldplace);
- }
}
void CPWL_Edit::OnClear(const CPVT_WordPlace& place,
@@ -806,10 +782,6 @@ void CPWL_Edit::OnClear(const CPVT_WordPlace& place,
m_pEdit->RefreshWordRange(CombineWordRange(GetLatinWordsRange(oldplace),
GetLatinWordsRange(place)));
}
-
- if (m_pEditNotify) {
- m_pEditNotify->OnClear(place, oldplace);
- }
}
void CPWL_Edit::OnInsertWord(const CPVT_WordPlace& place,
@@ -818,10 +790,6 @@ void CPWL_Edit::OnInsertWord(const CPVT_WordPlace& place,
m_pEdit->RefreshWordRange(CombineWordRange(GetLatinWordsRange(oldplace),
GetLatinWordsRange(place)));
}
-
- if (m_pEditNotify) {
- m_pEditNotify->OnInsertWord(place, oldplace);
- }
}
void CPWL_Edit::OnInsertText(const CPVT_WordPlace& place,
@@ -830,16 +798,6 @@ void CPWL_Edit::OnInsertText(const CPVT_WordPlace& place,
m_pEdit->RefreshWordRange(CombineWordRange(GetLatinWordsRange(oldplace),
GetLatinWordsRange(place)));
}
-
- if (m_pEditNotify) {
- m_pEditNotify->OnInsertText(place, oldplace);
- }
-}
-
-void CPWL_Edit::OnAddUndo(IFX_Edit_UndoItem* pUndoItem) {
- if (m_pEditNotify) {
- m_pEditNotify->OnAddUndo(this);
- }
}
CPVT_WordRange CPWL_Edit::CombineWordRange(const CPVT_WordRange& wr1,