diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-23 16:03:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-23 16:03:10 -0800 |
commit | 0ce11eef157b791c661d7e82e1c5641605b9f03d (patch) | |
tree | e5166163947824e52c417b4a65c2c7d965c00dad /xfa/fwl/core/cfwl_notedriver.cpp | |
parent | 2430b30088c3e3396ccf26a10d360d0553404bb0 (diff) | |
download | pdfium-0ce11eef157b791c661d7e82e1c5641605b9f03d.tar.xz |
Rename IFWL classes which do not have CFWL equivalents
This CL moves the IFWL classes that do not have CFWL class buddies to have the
CFWL name. This CL leaves the tree in a weird state of having CFWL be two
hierarchies, one of which is intertwined with the IFWL hierarchy. This should
be commited just before the CL to move the rest of IFWL to CFWL.
Review-Url: https://codereview.chromium.org/2525083002
Diffstat (limited to 'xfa/fwl/core/cfwl_notedriver.cpp')
-rw-r--r-- | xfa/fwl/core/cfwl_notedriver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fwl/core/cfwl_notedriver.cpp b/xfa/fwl/core/cfwl_notedriver.cpp index f4f325f95a..c12882a47e 100644 --- a/xfa/fwl/core/cfwl_notedriver.cpp +++ b/xfa/fwl/core/cfwl_notedriver.cpp @@ -13,6 +13,7 @@ #include "third_party/base/stl_util.h" #include "xfa/fwl/core/cfwl_app.h" #include "xfa/fwl/core/cfwl_eventtarget.h" +#include "xfa/fwl/core/cfwl_form.h" #include "xfa/fwl/core/cfwl_msgkey.h" #include "xfa/fwl/core/cfwl_msgkillfocus.h" #include "xfa/fwl/core/cfwl_msgmouse.h" @@ -20,7 +21,6 @@ #include "xfa/fwl/core/cfwl_msgsetfocus.h" #include "xfa/fwl/core/cfwl_noteloop.h" #include "xfa/fwl/core/cfwl_widgetmgr.h" -#include "xfa/fwl/core/ifwl_form.h" CFWL_NoteDriver::CFWL_NoteDriver() : m_pHover(nullptr), @@ -103,7 +103,7 @@ bool CFWL_NoteDriver::SetFocus(IFWL_Widget* pFocus, bool bNotify) { if (pFocus) { IFWL_Widget* pWidget = pFocus->GetOwnerApp()->GetWidgetMgr()->GetSystemFormWidget(pFocus); - IFWL_Form* pForm = static_cast<IFWL_Form*>(pWidget); + CFWL_Form* pForm = static_cast<CFWL_Form*>(pWidget); if (pForm) pForm->SetSubFocus(pFocus); @@ -149,7 +149,7 @@ void CFWL_NoteDriver::NotifyTargetDestroy(IFWL_Widget* pNoteTarget) { UnregisterEventTarget(pNoteTarget); for (int32_t nIndex = 0; nIndex < m_forms.GetSize(); nIndex++) { - IFWL_Form* pForm = static_cast<IFWL_Form*>(m_forms[nIndex]); + CFWL_Form* pForm = static_cast<CFWL_Form*>(m_forms[nIndex]); if (!pForm) continue; @@ -275,7 +275,7 @@ bool CFWL_NoteDriver::DoSetFocus(CFWL_Message* pMessage, if (!pWidget) return false; - IFWL_Form* pForm = static_cast<IFWL_Form*>(pWidget); + CFWL_Form* pForm = static_cast<CFWL_Form*>(pWidget); IFWL_Widget* pSubFocus = pForm->GetSubFocus(); if (pSubFocus && ((pSubFocus->GetStates() & FWL_WGTSTATE_Focused) == 0)) { pMessage->m_pDstTarget = pSubFocus; @@ -296,7 +296,7 @@ bool CFWL_NoteDriver::DoKillFocus(CFWL_Message* pMessage, return true; } - IFWL_Form* pForm = static_cast<IFWL_Form*>(pMessage->m_pDstTarget); + CFWL_Form* pForm = static_cast<CFWL_Form*>(pMessage->m_pDstTarget); if (!pForm) return false; @@ -450,7 +450,7 @@ bool CFWL_NoteDriver::IsValidMessage(CFWL_Message* pMessage) { } for (int32_t j = 0; j < m_forms.GetSize(); j++) { - IFWL_Form* pForm = static_cast<IFWL_Form*>(m_forms[j]); + CFWL_Form* pForm = static_cast<CFWL_Form*>(m_forms[j]); if (pForm == pMessage->m_pDstTarget) return true; } |