| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "xfa/src/fwl/src/core/fwl_threadimp.h" | 7 #include "xfa/src/fwl/core/fwl_threadimp.h" |
| 8 | 8 |
| 9 #include "xfa/src/fwl/src/core/fwl_appimp.h" | 9 #include "xfa/src/fwl/core/fwl_appimp.h" |
| 10 #include "xfa/src/fwl/src/core/fwl_noteimp.h" | 10 #include "xfa/src/fwl/core/fwl_noteimp.h" |
| 11 #include "xfa/src/fwl/src/core/fwl_targetimp.h" | 11 #include "xfa/src/fwl/core/fwl_targetimp.h" |
| 12 | 12 |
| 13 void IFWL_Thread::Release() { | 13 void IFWL_Thread::Release() { |
| 14 delete m_pImpl; | 14 delete m_pImpl; |
| 15 } | 15 } |
| 16 FWL_ERR IFWL_Thread::Run(FWL_HTHREAD hThread) { | 16 FWL_ERR IFWL_Thread::Run(FWL_HTHREAD hThread) { |
| 17 return m_pImpl->Run(hThread); | 17 return m_pImpl->Run(hThread); |
| 18 } | 18 } |
| 19 IFWL_NoteDriver* IFWL_NoteThread::GetNoteDriver() { | 19 IFWL_NoteDriver* IFWL_NoteThread::GetNoteDriver() { |
| 20 return static_cast<CFWL_NoteThreadImp*>(GetImpl())->GetNoteDriver(); | 20 return static_cast<CFWL_NoteThreadImp*>(GetImpl())->GetNoteDriver(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 FWL_ERR CFWL_ThreadImp::Run(FWL_HTHREAD hThread) { | 23 FWL_ERR CFWL_ThreadImp::Run(FWL_HTHREAD hThread) { |
| 24 return FWL_ERR_Succeeded; | 24 return FWL_ERR_Succeeded; |
| 25 } | 25 } |
| 26 CFWL_NoteThreadImp::CFWL_NoteThreadImp(IFWL_NoteThread* pIface) | 26 CFWL_NoteThreadImp::CFWL_NoteThreadImp(IFWL_NoteThread* pIface) |
| 27 : CFWL_ThreadImp(pIface), m_pNoteDriver(new CFWL_NoteDriver) {} | 27 : CFWL_ThreadImp(pIface), m_pNoteDriver(new CFWL_NoteDriver) {} |
| 28 CFWL_NoteThreadImp::~CFWL_NoteThreadImp() { | 28 CFWL_NoteThreadImp::~CFWL_NoteThreadImp() { |
| 29 delete m_pNoteDriver; | 29 delete m_pNoteDriver; |
| 30 } | 30 } |
| 31 FWL_ERR CFWL_NoteThreadImp::Run(FWL_HTHREAD hThread) { | 31 FWL_ERR CFWL_NoteThreadImp::Run(FWL_HTHREAD hThread) { |
| 32 if (!m_pNoteDriver) | 32 if (!m_pNoteDriver) |
| 33 return FWL_ERR_Indefinite; | 33 return FWL_ERR_Indefinite; |
| 34 return m_pNoteDriver->Run(); | 34 return m_pNoteDriver->Run(); |
| 35 } | 35 } |
| 36 IFWL_NoteDriver* CFWL_NoteThreadImp::GetNoteDriver() { | 36 IFWL_NoteDriver* CFWL_NoteThreadImp::GetNoteDriver() { |
| 37 return m_pNoteDriver; | 37 return m_pNoteDriver; |
| 38 } | 38 } |
| OLD | NEW |