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 |
| 11 #include "xfa/fwl/core/fwl_targetimp.h" |
11 #include "xfa/include/fwl/basewidget/fwl_caret.h" | 12 #include "xfa/include/fwl/basewidget/fwl_caret.h" |
12 #include "xfa/include/fwl/lightwidget/edit.h" | 13 #include "xfa/include/fwl/lightwidget/edit.h" |
13 #include "xfa/src/fwl/core/fwl_targetimp.h" | |
14 | 14 |
15 CFWL_Caret* CFWL_Caret::Create() { | 15 CFWL_Caret* CFWL_Caret::Create() { |
16 return new CFWL_Caret; | 16 return new CFWL_Caret; |
17 } | 17 } |
18 FWL_ERR CFWL_Caret::Initialize(const CFWL_WidgetProperties* pProperties) { | 18 FWL_ERR CFWL_Caret::Initialize(const CFWL_WidgetProperties* pProperties) { |
19 if (m_pIface) | 19 if (m_pIface) |
20 return FWL_ERR_Indefinite; | 20 return FWL_ERR_Indefinite; |
21 if (pProperties) { | 21 if (pProperties) { |
22 *m_pProperties = *pProperties; | 22 *m_pProperties = *pProperties; |
23 } | 23 } |
(...skipping 14 matching lines...) Expand all Loading... |
38 return static_cast<IFWL_Caret*>(m_pIface)->GetFrequency(elapse); | 38 return static_cast<IFWL_Caret*>(m_pIface)->GetFrequency(elapse); |
39 } | 39 } |
40 FWL_ERR CFWL_Caret::SetFrequency(FX_DWORD elapse) { | 40 FWL_ERR CFWL_Caret::SetFrequency(FX_DWORD elapse) { |
41 return static_cast<IFWL_Caret*>(m_pIface)->SetFrequency(elapse); | 41 return static_cast<IFWL_Caret*>(m_pIface)->SetFrequency(elapse); |
42 } | 42 } |
43 FWL_ERR CFWL_Caret::SetColor(CFX_Color crFill) { | 43 FWL_ERR CFWL_Caret::SetColor(CFX_Color crFill) { |
44 return static_cast<IFWL_Caret*>(m_pIface)->SetColor(crFill); | 44 return static_cast<IFWL_Caret*>(m_pIface)->SetColor(crFill); |
45 } | 45 } |
46 CFWL_Caret::CFWL_Caret() {} | 46 CFWL_Caret::CFWL_Caret() {} |
47 CFWL_Caret::~CFWL_Caret() {} | 47 CFWL_Caret::~CFWL_Caret() {} |
OLD | NEW |