diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-18 06:49:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-18 06:49:02 -0700 |
commit | 7adef41ed27ced7e18ee649a3d4f27a3cc00c51f (patch) | |
tree | fff2871099785daa42deff0cd847ba148c0fa1e2 /xfa/fwl/core/fwl_formimp.cpp | |
parent | 31e446374a7cf3f3353e42a03b6d5297e5cd60ec (diff) | |
download | pdfium-7adef41ed27ced7e18ee649a3d4f27a3cc00c51f.tar.xz |
Fold the FWL NoteThread classes up to the Thread classes.
The NoteThread classes only contained one member and don't provide any
added clarity. This CL moves the NoteDriver up to the Thread classes and
removes the NoteThread classes.
Review URL: https://codereview.chromium.org/1887703003
Diffstat (limited to 'xfa/fwl/core/fwl_formimp.cpp')
-rw-r--r-- | xfa/fwl/core/fwl_formimp.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fwl/core/fwl_formimp.cpp b/xfa/fwl/core/fwl_formimp.cpp index 919f85f532..3ed6eef95b 100644 --- a/xfa/fwl/core/fwl_formimp.cpp +++ b/xfa/fwl/core/fwl_formimp.cpp @@ -384,7 +384,7 @@ FWL_ERR CFWL_FormImp::SetFormSize(FWL_FORMSIZE eFormSize) { return FWL_ERR_Succeeded; } IFWL_Widget* CFWL_FormImp::DoModal() { - IFWL_NoteThread* pThread = GetOwnerThread(); + IFWL_Thread* pThread = GetOwnerThread(); if (!pThread) return NULL; IFWL_NoteDriver* pDriver = pThread->GetNoteDriver(); @@ -412,7 +412,7 @@ FWL_ERR CFWL_FormImp::EndDoModal() { m_bDoModalFlag = FALSE; #if (_FX_OS_ == _FX_MACOSX_) m_pNoteLoop->EndModalLoop(); - IFWL_NoteThread* pThread = GetOwnerThread(); + IFWL_Thread* pThread = GetOwnerThread(); if (!pThread) return FWL_ERR_Indefinite; CFWL_NoteDriver* pDriver = @@ -739,7 +739,7 @@ void CFWL_FormImp::ReSetSysBtn() { } } void CFWL_FormImp::RegisterForm() { - IFWL_NoteThread* pThread = GetOwnerThread(); + IFWL_Thread* pThread = GetOwnerThread(); if (!pThread) return; CFWL_NoteDriver* pDriver = @@ -749,7 +749,7 @@ void CFWL_FormImp::RegisterForm() { pDriver->RegisterForm(this); } void CFWL_FormImp::UnRegisterForm() { - IFWL_NoteThread* pThread = GetOwnerThread(); + IFWL_Thread* pThread = GetOwnerThread(); if (!pThread) return; CFWL_NoteDriver* pDriver = @@ -878,7 +878,7 @@ int32_t CFWL_FormImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { switch (dwMsgCode) { case FWL_MSGHASH_Activate: { m_pOwner->m_pProperties->m_dwStates &= ~FWL_WGTSTATE_Deactivated; - IFWL_NoteThread* pThread = m_pOwner->GetOwnerThread(); + IFWL_Thread* pThread = m_pOwner->GetOwnerThread(); CFWL_NoteDriver* pDriver = static_cast<CFWL_NoteDriver*>(pThread->GetNoteDriver()); CFWL_WidgetImp* pSubFocusImp = m_pOwner->GetSubFocus(); @@ -892,7 +892,7 @@ int32_t CFWL_FormImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { } case FWL_MSGHASH_Deactivate: { m_pOwner->m_pProperties->m_dwStates |= FWL_WGTSTATE_Deactivated; - IFWL_NoteThread* pThread = m_pOwner->GetOwnerThread(); + IFWL_Thread* pThread = m_pOwner->GetOwnerThread(); CFWL_NoteDriver* pDriver = static_cast<CFWL_NoteDriver*>(pThread->GetNoteDriver()); CFWL_WidgetImp* pSubFocusImp = m_pOwner->GetSubFocus(); |