| 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/include/fwl/lightwidget/caret.h" | 7 #include "xfa/include/fwl/lightwidget/caret.h" | 
| 8 | 8 | 
| 9 #include <memory> | 9 #include <memory> | 
| 10 | 10 | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 28   if (ret != FWL_ERR_Succeeded) { | 28   if (ret != FWL_ERR_Succeeded) { | 
| 29     return ret; | 29     return ret; | 
| 30   } | 30   } | 
| 31   m_pIface = pCaret.release(); | 31   m_pIface = pCaret.release(); | 
| 32   CFWL_Widget::Initialize(); | 32   CFWL_Widget::Initialize(); | 
| 33   return FWL_ERR_Succeeded; | 33   return FWL_ERR_Succeeded; | 
| 34 } | 34 } | 
| 35 FWL_ERR CFWL_Caret::ShowCaret(FX_BOOL bFlag) { | 35 FWL_ERR CFWL_Caret::ShowCaret(FX_BOOL bFlag) { | 
| 36   return static_cast<IFWL_Caret*>(m_pIface)->ShowCaret(bFlag); | 36   return static_cast<IFWL_Caret*>(m_pIface)->ShowCaret(bFlag); | 
| 37 } | 37 } | 
| 38 FWL_ERR CFWL_Caret::GetFrequency(FX_DWORD& elapse) { | 38 FWL_ERR CFWL_Caret::GetFrequency(uint32_t& elapse) { | 
| 39   return static_cast<IFWL_Caret*>(m_pIface)->GetFrequency(elapse); | 39   return static_cast<IFWL_Caret*>(m_pIface)->GetFrequency(elapse); | 
| 40 } | 40 } | 
| 41 FWL_ERR CFWL_Caret::SetFrequency(FX_DWORD elapse) { | 41 FWL_ERR CFWL_Caret::SetFrequency(uint32_t elapse) { | 
| 42   return static_cast<IFWL_Caret*>(m_pIface)->SetFrequency(elapse); | 42   return static_cast<IFWL_Caret*>(m_pIface)->SetFrequency(elapse); | 
| 43 } | 43 } | 
| 44 FWL_ERR CFWL_Caret::SetColor(CFX_Color crFill) { | 44 FWL_ERR CFWL_Caret::SetColor(CFX_Color crFill) { | 
| 45   return static_cast<IFWL_Caret*>(m_pIface)->SetColor(crFill); | 45   return static_cast<IFWL_Caret*>(m_pIface)->SetColor(crFill); | 
| 46 } | 46 } | 
| 47 CFWL_Caret::CFWL_Caret() {} | 47 CFWL_Caret::CFWL_Caret() {} | 
| 48 CFWL_Caret::~CFWL_Caret() {} | 48 CFWL_Caret::~CFWL_Caret() {} | 
| OLD | NEW | 
|---|