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/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
| 8 #include "xfa/src/fwl/src/basewidget/include/fwl_caretimp.h" |
| 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | |
10 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 11 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" |
11 #include "xfa/src/fwl/src/basewidget/include/fwl_caretimp.h" | |
12 | 12 |
13 // static | 13 // static |
14 IFWL_Caret* IFWL_Caret::Create(const CFWL_WidgetImpProperties& properties, | 14 IFWL_Caret* IFWL_Caret::Create(const CFWL_WidgetImpProperties& properties, |
15 IFWL_Widget* pOuter) { | 15 IFWL_Widget* pOuter) { |
16 IFWL_Caret* pCaret = new IFWL_Caret; | 16 IFWL_Caret* pCaret = new IFWL_Caret; |
17 CFWL_CaretImp* pCaretImpl = new CFWL_CaretImp(properties, pOuter); | 17 CFWL_CaretImp* pCaretImpl = new CFWL_CaretImp(properties, pOuter); |
18 pCaret->SetImpl(pCaretImpl); | 18 pCaret->SetImpl(pCaretImpl); |
19 pCaretImpl->SetInterface(pCaret); | 19 pCaretImpl->SetInterface(pCaret); |
20 return pCaret; | 20 return pCaret; |
21 } | 21 } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 CFWL_CaretImpDelegate::CFWL_CaretImpDelegate(CFWL_CaretImp* pOwner) | 146 CFWL_CaretImpDelegate::CFWL_CaretImpDelegate(CFWL_CaretImp* pOwner) |
147 : m_pOwner(pOwner) {} | 147 : m_pOwner(pOwner) {} |
148 int32_t CFWL_CaretImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { | 148 int32_t CFWL_CaretImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { |
149 return 1; | 149 return 1; |
150 } | 150 } |
151 FWL_ERR CFWL_CaretImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 151 FWL_ERR CFWL_CaretImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
152 const CFX_Matrix* pMatrix) { | 152 const CFX_Matrix* pMatrix) { |
153 return m_pOwner->DrawWidget(pGraphics, pMatrix); | 153 return m_pOwner->DrawWidget(pGraphics, pMatrix); |
154 } | 154 } |
OLD | NEW |